When producing applications with internationalized names (i.e., UTF-8 encoded but outside of normal ASCII range), WebWorks will throw an error while packaging the .bar file. The behaviour is reproducible with either simple UTF-8 encoded strings within config.xml, or when using XML-escaped unicode code point entities.
Both cases result in the following output from the 'bbwp' utility:
bbwp build/bin/myapp.zip -o build/bin/
[INFO] Parsing command line options
[INFO] Parsing bbwp.properties
[INFO] Validating WebWorks archive
[INFO] Parsing config.xml
[INFO] Populating application source
[INFO] Compiling WebWorks application
[INFO] Packaging the bar file
Error: Invalid byte 1 of 1-byte UTF-8 sequence.
Judging from this behaviour, it appears the name byte stream is being interpreted into a non-UTF-8 encoded stream, and passed to some internal process which is expecting a UTF-8 encoded stream.
When producing applications with internationalized names (i.e., UTF-8 encoded but outside of normal ASCII range), WebWorks will throw an error while packaging the .bar file. The behaviour is reproducible with either simple UTF-8 encoded strings within config.xml, or when using XML-escaped unicode code point entities.
Example (note //widget/name):
Or alternatively:
Both cases result in the following output from the 'bbwp' utility:
Judging from this behaviour, it appears the name byte stream is being interpreted into a non-UTF-8 encoded stream, and passed to some internal process which is expecting a UTF-8 encoded stream.