Newer versions of GAMS allow UTF-8 encoded strings as labels. That is very welcome, as these labels may come from data sources that just use Unicode characters. However, when printing to the listing file, we miss proper Unicode support. At first, I thought, "OK, just a few misaligned tables. No big deal." Here is a constructed example showing this may be a bit more problematic.
display p;
The output is:
This table is very misleading. The second row should have the 1.000 in column col2. If you can't trust the output of the display statement, things become a bit dicey. Admittedly, this example was carefully constructed to illustrate the point. Obviously, this needs to be fixed.
A notable exception is SQLite: this is built without full Unicode support by default. Of course SQLite runs on devices like smart phones, so it needs to watch resource usage. When built without full Unicode support, SQLite will not do Unicode case-insensitive comparison or case changes correctly. This behavior can be changed by building with full Unicode support.
No comments:
Post a Comment