Changes between Version 3 and Version 4 of TracDev/UnicodeGuidelines
- Timestamp:
- May 2, 2006, 12:28:43 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDev/UnicodeGuidelines
v3 v4 98 98 (NB: as we have seen above, 'iso-8859-15' is a fixed-byte encoding 99 99 with a mapping defined for all the 0..255 range, so decoding ''any'' 100 input withsuch an encoding will ''always'' succeed).100 input assuming such an encoding will ''always'' succeed). 101 101 {{{ 102 102 >>> unicode('ndr\xe9 Le', 'utf-8') … … 121 121 * One possibility would be to use replacement characters: 122 122 {{{ 123 >>> unicode('ndr\xe9 Le', 'utf-8' )123 >>> unicode('ndr\xe9 Le', 'utf-8', 'replace') 124 124 u'ndr\ufffde' 125 125 }}} … … 183 183 in this situation. 184 184 185 186 187 188 though I'm thinking about moving thein the `trac.util.text` package:189 * some of the corresponding unit tests are already in `trac.util.tests.text`190 *`to_unicode` could then be used in the `Markup` class''185 ''FIXME: talk a bit about the other utilities'' 186 187 ''FIXME: Those utilities are currently placed in the `trac.util` package, 188 though I'm thinking about moving them in the `trac.util.text` package: 189 * ''some of the corresponding unit tests are already in `trac.util.tests.text`'' 190 * ''`to_unicode` could then be used in the `Markup` class'' 191 191 192 192 === The Mimeview component === … … 247 247 248 248 In Subversion, there are clear rules about the pathnames used 249 by the SVN Bindings for Python: those should UTF-8 encoded `str` objects.250 251 Therefore, `unicode` pathnames should 'utf-8' encoded before249 by the SVN Bindings for Python: those should be UTF-8 encoded `str` objects. 250 251 Therefore, `unicode` pathnames should be 'utf-8' encoded before 252 252 being passed to the bindings, and pathnames returned by 253 253 the bindings should be decoded using 'utf-8' before being … … 292 292 should be used. 293 293 294 ''FIXME: and logging?'' 294 The logging API seems to handle `unicode` objects just fine. 295 295 296 296 === Interaction with plugins === … … 302 302 == Questions/Suggestions... == 303 303 304 Sorry, there are certainly a ton of typos there, hopefully305 no more serious errors. But I had to have a first draft of this.306 307 304 Feel free to correct me, ask questions, etc.; this is a Wiki. :) 305 306 ---- 307 See also TracUnicode, [query:?keywords=~unicode&milestone=0.10&group=status unicode related tickets]