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

Problem with japanese strings #3

Closed
JuanjoSalvador opened this issue May 13, 2016 · 7 comments
Closed

Problem with japanese strings #3

JuanjoSalvador opened this issue May 13, 2016 · 7 comments

Comments

@JuanjoSalvador
Copy link

Trying to get a japanese text from Google Translate.

I get this.

�����ɂ���'

Seems like a problem with charcode.

@JuanjoSalvador
Copy link
Author

Solved using iconv for UTF-8 conversion.

@tolya199178
Copy link

@JuanjoSalvador Can you comment sampe code for UTF-8 conversion.

@tolya199178
Copy link

[
{
"originalText": "name",
"translatedText": "�̸�"
},
{
"originalText": "this",
"translatedText": "��"
}
]
I am getting above result when english to korean translation.

@statickidz
Copy link
Owner

Thats just a console fonts stuff, I'll update with some changes and you'll see a example with some Korean text saved on a file

@tolya199178
Copy link

@statickidz No, it is not console fonts stuff.
I have wirte resute code to file and there is chracter issue too.
fs.writeFile(filename, JSON.stringify(data, null, " "), "utf8");

@statickidz statickidz reopened this Aug 1, 2016
@statickidz
Copy link
Owner

Check last update and install it from npm, then check the example with file

@tolya199178
Copy link

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants