equal
deleted
inserted
replaced
13 # |
13 # |
14 ############################################################################## |
14 ############################################################################## |
15 |
15 |
16 |
16 |
17 # import standard packages |
17 # import standard packages |
|
18 import codecs |
18 import string |
19 import string |
19 import codecs |
|
20 |
20 |
21 # import Zope3 interfaces |
21 # import Zope3 interfaces |
22 |
22 |
23 # import local interfaces |
23 # import local interfaces |
24 |
24 |
81 |
81 |
82 _fillUnicodeTransTable() |
82 _fillUnicodeTransTable() |
83 |
83 |
84 |
84 |
85 def translateString(s, escapeSlashes=False, forceLower=True) : |
85 def translateString(s, escapeSlashes=False, forceLower=True) : |
86 """Remove extended characters from string |
86 """Remove extended characters from string and replace them with 'basic' ones |
87 |
87 |
88 @param s: text to be cleaned. |
88 @param s: text to be cleaned. |
89 @type s: str or unicode |
89 @type s: str or unicode |
90 @param escapeSlashes: if True, slashes are also converted |
90 @param escapeSlashes: if True, slashes are also converted |
91 @type escapeSlashes: boolean |
91 @type escapeSlashes: boolean |