Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ASCII 是 8 位值。Unicode 可能是 8 位或 16 位或 32 位值。如果我将子类定义为字符,WTX 如何知道它是 8 位还是 16 位字符?
将项目的子类设置为字符只是解决方案的一半。您还必须设置语言(默认为“西方”),更重要的是,字符集。如果您选择 UTF-8 (-16, -32),解析器能够识别多字节字符并正确读取它们(当然,要解析的文档是使用类型树的编码进行编码的)。