pr0gramista / charset_converter

Flutter platform charset converter
BSD 3-Clause "New" or "Revised" License
29 stars 19 forks source link

CharsetConverter.encode give different results from windows and android #30

Open sarah-Alraheb1995 opened 1 year ago

sarah-Alraheb1995 commented 1 year ago

var x= await CharsetConverter.encode( "ibm864", String.fromCharCodes([219]));

ptint(x);

x in Windows give result ====> 63 x in android give result =====>215 and the result from Android is the correct encode

could you please give some help?

pr0gramista commented 10 months ago

Hey, thanks for reporting the issue! Could you tell me - what languages are you working with and do you have a problem with only this exact character or with all characters? That would be helpful to debug this.

Unfortunately, platforms are a bit like a black box and may alias a code page to a completely different code page and provide unexpected data. Try to use a different name for the code page.

And sorry for my late response...