Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sarah-Alraheb1995 opened this issue Sep 12, 2023 · 1 comment
Labels
Android bug Something isn't working Windows

Comments

@sarah-Alraheb1995
Copy link

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
Copy link
Owner

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...

@pr0gramista pr0gramista added bug Something isn't working Android Windows labels Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android bug Something isn't working Windows
Projects
None yet
Development

No branches or pull requests

2 participants