[progress Communities] [progress Openedge Abl] Forum Post: Re: Codepage Problems Utf8

  • Thread starter Thread starter goo
  • Start date Start date
Status
Not open for further replies.
G

goo

Guest
Paul,the webclient has internalcodepage as ISO8859-1, and since we don't do anything with the lc variable, it is ISO8859-1. Will Progress then convert the text given by oStreamReader:ReadToEnd() to ISO? I am pretty sure it is UTF8 when it comes from the stream. Is the RETURN lc now a ISO or do you think it is UTF8? ******************************************************************************************************************* def var oStreamReader as class System.IO.StreamReader. def var oEncoding as System.Text.Encoding. oEncoding = System.Text.Encoding:UTF8. QueueHasRecord = TRUE. oMsg = NEW System.Messaging.Message(). oMsg = oMsgQ:Receive(NEW System.TimeSpan(0)). IF MsgFormat = 'Binary' THEN oMsg:Formatter = oMsgBinaryFormatter. ELSE IF MsgFormat = 'ActiveX' THEN oMsg:Formatter = oMsgActiveXFormatter. ELSE oMsg:Formatter = oMsgXmlFormatter. oStreamReader = new System.IO.StreamReader(oMsg:BodyStream,oEncoding,TRUE). lc = oStreamReader:ReadToEnd(). lc = replace(lc,'',''). /*Fjerner eventuell UTF-8 BOM*/ RETURN lc. *******************************************************************************************************************

Continue reading...
 
Status
Not open for further replies.
Back
Top