Edgewall Software

Changes between Version 3 and Version 4 of TracDev/UnicodeGuidelines


Ignore:
Timestamp:
May 2, 2006, 12:28:43 PM (18 years ago)
Author:
Christian Boos
Comment:

Several typos fixed + link to unicode related issues added

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/UnicodeGuidelines

    v3 v4  
    9898     (NB: as we have seen above, 'iso-8859-15' is a fixed-byte encoding
    9999     with a mapping defined for all the 0..255 range, so decoding ''any''
    100      input with such an encoding will ''always'' succeed).
     100     input assuming such an encoding will ''always'' succeed).
    101101     {{{
    102102     >>> unicode('ndr\xe9 Le', 'utf-8')
     
    121121     * One possibility would be to use replacement characters:
    122122       {{{
    123        >>> unicode('ndr\xe9 Le', 'utf-8')
     123       >>> unicode('ndr\xe9 Le', 'utf-8', 'replace')
    124124       u'ndr\ufffde'
    125125       }}}
     
    183183   in this situation.
    184184
    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 the 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''
     185''FIXME: talk a bit about the other utilities''
     186
     187''FIXME: Those utilities are currently placed in the `trac.util` package,
     188though 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''
    191191
    192192=== The Mimeview component ===
     
    247247
    248248In 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 before
     249by the SVN Bindings for Python: those should be UTF-8 encoded `str` objects.
     250
     251Therefore, `unicode` pathnames should be 'utf-8' encoded before
    252252being passed to the bindings, and pathnames returned by
    253253the bindings should be decoded using 'utf-8' before being
     
    292292should be used.
    293293
    294   ''FIXME: and logging?''
     294The logging API seems to handle `unicode` objects just fine.
    295295
    296296=== Interaction with plugins ===
     
    302302== Questions/Suggestions... ==
    303303
    304 Sorry, there are certainly a ton of typos there, hopefully
    305 no more serious errors. But I had to have a first draft of this.
    306 
    307304Feel free to correct me, ask questions, etc.; this is a Wiki. :)
     305
     306----
     307See also TracUnicode, [query:?keywords=~unicode&milestone=0.10&group=status unicode related tickets]