I18n noob here, so perhaps a really basic question ;)
I have a character that is represented in json by \u0100 , which is Ā
how do I turn this into a character in progress ?
Complete frig, do a double conversion assuming an "feff" BOM. Probably not one for the purist in you.
define variable char1 as longchar no-undo. define variable char2 as longchar no-undo. define variable int1 as integer no-undo. int1 = 256. /* \u0100 = feff0100 = 100(hex) = 256(dec) */ fix-codepage(char1) = "utf-8". fix-codepage(char2) = session:charset. char1 = CHR(int1, "utf-8", "utf-16"). copy-lob from object char1 to object char2. /* see the result */ copy-lob from object char2 to file "char.txt" no-convert.
I18n noob here, so perhaps a really basic question ;)
I have a character that is represented in json by \u0100 , which is Ā
how do I turn this into a character in progress ?
Flag this post as spam/abuse.
You are perfectly correct in your statement, with one small caveat .. The only reason why I am doing this is because I have to use 10.2B ... :( 11 would be a cinch
You are perfectly correct in your statement, with one small caveat .. The only reason why I am doing this is because I have to use 10.2B ... :( 11 would be a cinch
Flag this post as spam/abuse.