[Gambas-devel] PING > Benoit --> Conv function

nospam.nospam.nospam at ...176... nospam.nospam.nospam at ...176...
Sat Jan 16 04:39:09 CET 2010


Benoit,

ConvertedString = Conv (String AS String, SourceCharset AS String,
DestinationCharset AS String) AS String

Before I update the English page for the Conv function
(http://gambasdoc.org/help/lang/conv), can you confirm that Gambas
passes both the SourceCharset and DestinationCharset to the iconv()
GNU library function, unfiltered and unaltered. That is, can you
confirm that the Gambas Conv function can convert any encoding pair
supported by iconv()?

I want to update the Conv page to reflect what I just discovered,
which you probably knew anyway but it isn't documented... I have just
made Gambas convert encoded Turkish (iso-8859-9), Korean (EUC-KR),
Simplified Chinese (GB2312), Arabic (windows-1256), Cyrillic (koi8-r)
and Japanese (iso-2022-jp) into human-readable UTF-8.

For example:
From: ^[$B=iJbE*$J;v$G$9$,!V%a!<%k!W$K$D$$^[(B
To: 初歩的な事ですが「メール」につい

From: ���ʻ��⣬����ͼƬ��Ȥ����������
To: 新鲜话题,火爆图片,趣闻奇理,我抢鲜!!

Suggested addition to web page:
Gambas can convert, amongst many other encodings, Turkish
(ISO-8859-9), Korean (EUC-KR), Simplified Chinese (GB2312), Arabic
(WINDOWS-1256), Cyrillic (KOI8-R) and Japanese (ISO-2022-JP) into
human-readable UTF-8 text. For a full list of supported international
text conversions visit http://www.gnu.org/software/libiconv

OR

Gambas can convert, amongst many other encodings, Turkish
(iso-8859-9), Korean (EUC-KR), Simplified Chinese (GB2312), Arabic
(windows-1256), Cyrillic (koi8-r) and Japanese (iso-2022-jp) into
human-readable UTF-8. For a full list of supported international text
conversions type iconv -l in a command line.

Are you ok with that?




More information about the Devel mailing list