-
Notifications
You must be signed in to change notification settings - Fork 122
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
Could not convert from SJIS to UTF-8 #5
Comments
Actually, the method codeToString should not be used in this case. It seems to be used for 16bit-based converting |
What is originalText string? |
hello, originalText is data was read from file which is in SJIS encode |
Maybe, I think that the character code you are looking for is "Unicode". var outputArray = Encoding.convert(inputArray, 'UNICODE', 'SJIS'); |
Actually I used
|
Encoding.codeToString uses |
Thanks for your reminding me of potential problems. I should apply library's method with a little bit of change
|
When I used below codes, data was not converted correctly. Output was not displayed as Japanese, but strange characters.
コンバートのため下記のソースコードを使ったが、出力のデータは日本語で表示せずに変な文字で表示ました。
「観é�³ Kå�,ç�·,ç��å·� Yå�,女,」
The text was updated successfully, but these errors were encountered: