为什么 BitBucket 不显示源代码中的所有字符?
Why does BitBucket not show all characters in the source code?
我有以下源代码:
static void UpdateNameAssignHistXML(CString strExistingName, CString strReplacementName = _T("¬DELETED¬"));
static void UpdateNameAssignHistXML(tinyxml2::XMLElement* element, CString strExistingName, CString strReplacementName);
static void DeleteNameFromAssignHistMAP(CString strName, CMapStringToPtr* pMapStrPtrHist);
请注意,我使用了字符 ¬ ???
好吧,在线,使用 Microsoft Edge,这看起来像:
它们显示为一个小问号符号。
为什么?
字符显示错误通常是错误的字符集。
Bitbucket 使用 UTF8,如果您使用不同的编码,一些字符可能看起来很奇怪或不同。
Bitbucket does not allow to change the charset yet 并且自 HTML4 起支持 UTF8 - 由于字符数量的缘故,很多页面都使用它,...。
Here is a table which displays the differences. 即使它在两者中都可用,它也可以有不同的代码。 (我猜这里的 table 全部是 UTF8,所以一切看起来都很好。)
我创建了一个测试片段,显示符号正在显示。 (已删除)
我有以下源代码:
static void UpdateNameAssignHistXML(CString strExistingName, CString strReplacementName = _T("¬DELETED¬"));
static void UpdateNameAssignHistXML(tinyxml2::XMLElement* element, CString strExistingName, CString strReplacementName);
static void DeleteNameFromAssignHistMAP(CString strName, CMapStringToPtr* pMapStrPtrHist);
请注意,我使用了字符 ¬ ???
好吧,在线,使用 Microsoft Edge,这看起来像:
它们显示为一个小问号符号。
为什么?
字符显示错误通常是错误的字符集。
Bitbucket 使用 UTF8,如果您使用不同的编码,一些字符可能看起来很奇怪或不同。
Bitbucket does not allow to change the charset yet 并且自 HTML4 起支持 UTF8 - 由于字符数量的缘故,很多页面都使用它,...。
Here is a table which displays the differences. 即使它在两者中都可用,它也可以有不同的代码。 (我猜这里的 table 全部是 UTF8,所以一切看起来都很好。)
我创建了一个测试片段,显示符号正在显示。 (已删除)