Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1 convert 16-bit unicode to utf-8

closed-fixed
Mark Simpson
None
5
2005-05-18
2003-01-12
Andy Fyfe
No

In winmail.dat files I've received, the long file name, etc., are store as unicode strings. They aren't properly extracted as a result. Exactly what to do with a general unicode string isn't clear, but what this patch does is convert the 16-bit unicode chars to UTF-8 encoding, which is 8-bit safe. An alternative would be to allow chars <= 0xff (ie, iso latin 1) to pass through, and change everything else to some default.

Discussion

  • Andy Fyfe
    Andy Fyfe
    2003-01-12

    patch file missing from original

     
    Attachments
  • Mark Simpson
    Mark Simpson
    2003-01-12

    Logged In: YES
    user_id=479738

    Can you send me a data file with UTF-8 encoding in the
    strings so i can test any changes?

     
  • Andy Fyfe
    Andy Fyfe
    2003-01-12

    Logged In: YES
    user_id=68374

    I need to construct an example winmail.dat; the one I have contains a word doc that I can't share. An example will follow.

     
  • Mark Simpson
    Mark Simpson
    2003-02-27

    Logged In: YES
    user_id=479738

    afyfe:

    I am not going to put in this patch until i have a way of
    testing it. Can you give me an ETA on when you can get me
    an example attachment? Even if it is not one that can be
    included in the test directory... if i can test with it i
    can validate the patch and put it in.

    Thanks.

     
  • Mark Simpson
    Mark Simpson
    2005-05-17

    • status: open --> pending
     
  • Mark Simpson
    Mark Simpson
    2005-05-17

    Logged In: YES
    user_id=479738

    In the next release (v1.3.3) i am including code to handle
    unicode strings better.

     
  • Mark Simpson
    Mark Simpson
    2005-05-18

    Logged In: YES
    user_id=479738

    appropriate code added to v1.3.3
    (kindest regards to the yntef project
    (www.sf.net/projects/tnef) from which i snitched the code.

     
  • Mark Simpson
    Mark Simpson
    2005-05-18

    • assigned_to: nobody --> verdammelt
    • status: pending --> closed-fixed