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

REPL show utf-8 string maybe wrong #8747

Closed
armgong opened this issue Oct 21, 2014 · 11 comments
Closed

REPL show utf-8 string maybe wrong #8747

armgong opened this issue Oct 21, 2014 · 11 comments
Labels
system:windows Affects only Windows unicode Related to unicode characters and encodings

Comments

@armgong
Copy link
Contributor

armgong commented Oct 21, 2014

on windows 8.1 64bit chinese version, REPL not show show utf-8 string.in the picture the thrid line and seventh line should show '∀' and "∀ x ∃ y" ,

image

@armgong
Copy link
Contributor Author

armgong commented Oct 21, 2014

image

@JeffBezanson
Copy link
Member

What happens if you call print(s) on the strings?

@armgong
Copy link
Contributor Author

armgong commented Oct 21, 2014

image

@JeffBezanson
Copy link
Member

printing an array of strings does something different; I want to see what happens for print(s).

@armgong
Copy link
Contributor Author

armgong commented Oct 21, 2014

yes print(s) is ok,but print array is not

@armgong
Copy link
Contributor Author

armgong commented Oct 21, 2014

image

@JeffBezanson JeffBezanson added system:windows Affects only Windows unicode Related to unicode characters and encodings labels Oct 21, 2014
@JeffBezanson
Copy link
Member

Could you provide the output of versioninfo()?

@armgong
Copy link
Contributor Author

armgong commented Oct 21, 2014

Ver 0.3.1 release win64 dowload from juLialang.org,also tried 0.3.1 release 32 bit same problem

@JeffBezanson
Copy link
Member

My guess is that this is #5939. If the character classification predicates tell us a character is not printable, we escape it. Should be fixed in 0.4.

@tkelman
Copy link
Contributor

tkelman commented Oct 21, 2014

Interestingly on Windows 7 US, I get isprint("\u4f60\u597d") returning true even in Julia 0.3.0, I either get question marks or the real characters depending on my font settings, never the escaped \u version.

@vtjnash vtjnash closed this as completed Nov 16, 2014
@vtjnash
Copy link
Member

vtjnash commented Nov 16, 2014

close per Jeff's assessment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
system:windows Affects only Windows unicode Related to unicode characters and encodings
Projects
None yet
Development

No branches or pull requests

4 participants