Encoding support is partial and mostly given by the encoding set by the HTML page. We suggest to always set encoding to UTF-8 explicitly:
<!doctype html> <html> <head> <meta charset="UTF-8" /> <!-- ... -->