Gunnar.Vogt
New Member
Hi!
I find myself in need to generate Cyrillic file names. The source is a string of HTML Hex Encoded names that I can decode. As an example I like to to set cFileName = chr(1040) + chr(1045) ...
Even so I'm in an UTF-8 session ABLs CHR function returns nothing. In my understanding ASC(CHR(1040)) should result in 1040 but ABL does not recognise the extented character set and returns-1.
According to Openedge description for CHR:
So I need to convince ABL that ih has a valid lead-byte value. But how?
Thanks for your help!
I find myself in need to generate Cyrillic file names. The source is a string of HTML Hex Encoded names that I can decode. As an example I like to to set cFileName = chr(1040) + chr(1045) ...
Even so I'm in an UTF-8 session ABLs CHR function returns nothing. In my understanding ASC(CHR(1040)) should result in 1040 but ABL does not recognise the extented character set and returns-1.
According to Openedge description for CHR:
For a value greater than 255, the CHR function checks whether the value represents a valid character within the source code page.For a double-byte or Unicode source code page, it checks for a corresponding lead-byte value.
So I need to convince ABL that ih has a valid lead-byte value. But how?
Thanks for your help!