blackberry/WebWorks-TabletOS — Issue #47: WebWorks SDK does not permit non-ASCII characters in //widget/name in config.xml
Author: chawco
Created: 2012-01-19 15:30:36+00:00
State: open

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):

```xml

é
...
```

Or alternatively:

```xml

é
...
```

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.