许多程序将数据存放在文本文件中,使用逗号、制表符或者冒号隔开数据域;您需要拒绝含有这些值的数据或者对其进行编码。
Many programs store data in text files, and separate the data fields with commas, tabs, or colons; you'll need to reject or encode user data with those values.
所以,如果您要接收utf - 8文本,您要确认每一个字符都使用最短可能UTF - 8编码(拒绝任何不是最短形式的文本)。
So, if you accept UTF-8 text, you need to make sure that every character USES the shortest possible UTF-8 encoding (and reject any text not in its shortest form).
作为咨询人员,我发现主要的公共编码失误之一是在程序中,而不是DB 2中验证并拒绝行。
One of the most common coding missteps I see as a consultant is the practice of validating and rejecting rows in the program instead of in DB2.
应用推荐