Revision 1295
Added by Aaron Marcuse-Kubitza almost 13 years ago
strings.py | ||
---|---|---|
1 | 1 |
# String manipulation |
2 | 2 |
|
3 |
import codecs |
|
3 | 4 |
import re |
4 | 5 |
|
5 | 6 |
import util |
6 | 7 |
|
8 |
unicode_reader = codecs.getreader('utf_8') |
|
9 |
|
|
7 | 10 |
def to_unicode(str_): |
8 | 11 |
if isinstance(str_, unicode): return str_ |
9 | 12 |
encodings = ['utf_8', 'latin_1'] |
Also available in: Unified diff
strings.py: Added unicode_reader for later use in handling Unicode characters in map spreadsheets