1. masklinn
  2. py.js
  3. Issues
Issue #22 resolved

Ensure unicode, octal and hex escapes are correctly handled in string literals

masklinn
repo owner created an issue

e.g.

>>> len('\xe9')
1

Note: \u and \U escapes only work in unicode literals:

>>> len('\u00e9')
6
>>> len(u'\u00e9')
1

Comments (1)

  1. Log in to comment