Claudio deSouza
2018-11-24 09:09:46 UTC
Hi,
I have been using CodepageToUTF16
<https://cs.chromium.org/chromium/src/base/i18n/icu_string_conversions.h?l=44&gs=kythe%253A%252F%252Fchromium%253Flang%253Dc%25252B%25252B%253Fpath%253Dsrc%252Fbase%252Fi18n%252Ficu_string_conversions.h%2523gJuPcZiw64PZKrvqmg1Wn%25252Bxi8TM78Cse%25252F5uZd%25252BeIUY0%25253D&gsn=CodepageToUTF16&ct=xref_usages> to
convert data coming from custom codepages to UTF16, but it seems that
CP-437 is not supported for some reason, even though it is clearly listed
in the following URL:
http://demo.icu-project.org/icu-bin/convexp
As mentioned in the documentation, codepage 437 is handled by the following
mapper: http://demo.icu-project.org/icu-bin/convexp?conv=ibm-437_P100-1995&s=ALL
This mapper is not a valid mapper somehow though, even though the file for
this mapper is present in the repository.
When listing all the valid mappers with the following code:
int end = ucnv_countAvailable();
for (int i = 0; i != end; ++i) {
LOG(INFO) << ucnv_getAvailableName(i);
}
I'm getting this result
UTF-8
utf-16be
utf-16le
ibm866-html
iso-8859-2-html
iso-8859-3-html
iso-8859-4-html
iso-8859-5-html
iso-8859-6-html
iso-8859-7-html
iso-8859-8-html
iso-8859-10-html
iso-8859-13-html
iso-8859-14-html
iso-8859-15-html
iso-8859-16-html
koi8-r-html
koi8-u-html
macintosh-html
windows-874-html
windows-1250-html
windows-1251-html
windows-1252-html
windows-1253-html
windows-1254-html
windows-1255-html
windows-1256-html
windows-1257-html
windows-1258-html
x-mac-cyrillic-html
windows-936-2000
gb18030
big5-html
euc-jp-html
ISO_2022,locale=ja,version=0
shift_jis-html
euc-kr-html
As can be seen, the mapper *ibm-437_P100-1995* is not listed in there. May
I please have some help understanding why that's the case?
I have been using CodepageToUTF16
<https://cs.chromium.org/chromium/src/base/i18n/icu_string_conversions.h?l=44&gs=kythe%253A%252F%252Fchromium%253Flang%253Dc%25252B%25252B%253Fpath%253Dsrc%252Fbase%252Fi18n%252Ficu_string_conversions.h%2523gJuPcZiw64PZKrvqmg1Wn%25252Bxi8TM78Cse%25252F5uZd%25252BeIUY0%25253D&gsn=CodepageToUTF16&ct=xref_usages> to
convert data coming from custom codepages to UTF16, but it seems that
CP-437 is not supported for some reason, even though it is clearly listed
in the following URL:
http://demo.icu-project.org/icu-bin/convexp
As mentioned in the documentation, codepage 437 is handled by the following
mapper: http://demo.icu-project.org/icu-bin/convexp?conv=ibm-437_P100-1995&s=ALL
This mapper is not a valid mapper somehow though, even though the file for
this mapper is present in the repository.
When listing all the valid mappers with the following code:
int end = ucnv_countAvailable();
for (int i = 0; i != end; ++i) {
LOG(INFO) << ucnv_getAvailableName(i);
}
I'm getting this result
UTF-8
utf-16be
utf-16le
ibm866-html
iso-8859-2-html
iso-8859-3-html
iso-8859-4-html
iso-8859-5-html
iso-8859-6-html
iso-8859-7-html
iso-8859-8-html
iso-8859-10-html
iso-8859-13-html
iso-8859-14-html
iso-8859-15-html
iso-8859-16-html
koi8-r-html
koi8-u-html
macintosh-html
windows-874-html
windows-1250-html
windows-1251-html
windows-1252-html
windows-1253-html
windows-1254-html
windows-1255-html
windows-1256-html
windows-1257-html
windows-1258-html
x-mac-cyrillic-html
windows-936-2000
gb18030
big5-html
euc-jp-html
ISO_2022,locale=ja,version=0
shift_jis-html
euc-kr-html
As can be seen, the mapper *ibm-437_P100-1995* is not listed in there. May
I please have some help understanding why that's the case?
--
--
Chromium Developers mailing list: chromium-***@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+***@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/3d615dda-5f07-4b17-9e1b-f1db6a4bcc4e%40chromium.org.
--
Chromium Developers mailing list: chromium-***@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+***@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/3d615dda-5f07-4b17-9e1b-f1db6a4bcc4e%40chromium.org.