nathanmarz/storm — Issue #52: storm.yaml doesn't support utf-8 encoding?
Author: killme2008
Created: 2011-11-28 03:31:50+00:00
State: open

I have some comments in storm.yaml written in chinese,it seems that jvyaml doesn't support utf-8 encoding,so storm read config failed just like:

Caused by: org.jvyaml.YAMLException: At 38 we found: ??. Special characters are not allowed
at org.jvyaml.ScannerImpl.checkPrintable(ScannerImpl.java:282)
at org.jvyaml.ScannerImpl.update(ScannerImpl.java:305)
at org.jvyaml.ScannerImpl.peek(ScannerImpl.java:199)
at org.jvyaml.ScannerImpl.scanToNextToken(ScannerImpl.java:592)
at org.jvyaml.ScannerImpl.fetchMoreTokens(ScannerImpl.java:322)
at org.jvyaml.ScannerImpl.peekToken(ScannerImpl.java:160)
at org.jvyaml.ParserImpl$4.produce(ParserImpl.java:182)
at org.jvyaml.ParserImpl.parseStreamNext(ParserImpl.java:796)
at org.jvyaml.ParserImpl.getEvent(ParserImpl.java:755)
at org.jvyaml.ComposerImpl.composeDocument(ComposerImpl.java:94)
at org.jvyaml.ComposerImpl.getNode(ComposerImpl.java:71)
at org.jvyaml.BaseConstructorImpl.getData(BaseConstructorImpl.java:88)
at org.jvyaml.YAML.load(YAML.java:188)
at org.jvyaml.YAML.load(YAML.java:165)

I think snakeyaml is a better choice to parse yaml file,see

http://code.google.com/p/snakeyaml/wiki/Comparison