ilmoeuro / snakeyaml

Automatically exported from code.google.com/p/snakeyaml
0 stars 0 forks source link

Some Unicode characters are wrongly replaced by \x{fffd} during double quoted style dump #51

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. dumping a string with e.g. 'í' character
2. dump should use double quoted style

What is the expected output? What do you see instead?
The character 'í' gets changed to '\x{fffd}' when dumping with double quoted 
style. When using the 
folded style instead the character gets correctly output.

What version of the product are you using? On what operating system?
SnakeYaml 1.5 with Java 1.5 on OS X 10.5.8.

Please provide any additional information below.
-

Original issue reported on code.google.com by johann.W...@nureg.de on 15 Feb 2010 at 10:25

GoogleCodeExporter commented 9 years ago
Thank you.
All non-ASCII characters were escaped.
I have just pushed the fix:
http://code.google.com/p/snakeyaml/source/detail?r=985cb2673711d91726d43403f236d
ac3c21e2eac

The test is here:
http://code.google.com/p/snakeyaml/source/browse/src/test/java/org/yaml/snakeyam
l/issues/issue51/UnicodeStyleTest.java

Can you please check it ?

Original comment by aso...@gmail.com on 15 Feb 2010 at 6:04

GoogleCodeExporter commented 9 years ago
Thanks for your quick response. With your fix the issue is gone.

Original comment by johann.W...@nureg.de on 16 Feb 2010 at 9:57