Re: [dabo-users] Fw: Unicode Encode Error

Author: Zdravko Subakov

Posted: 2012-04-21 at 01:36:26

Ok I think this should be the final solution

I put back the codecs lines

*********

import codecs

**********

and a bit changed

************

f = codecs.open(fname, "w","utf-8")

**************

and in writing string literals used leading u to denote unicode string

literals and it worked

****

tekst=u"Pozdrav Ž"

*******

even mixing Serbian Latin ŠĐČĆŽ Hungarian ŐÚÉÁŰ and Cyrilic ШЂЧЋЖ worked

fine

so that should be it.

The thing that I didnt change was in utils.py, should I put it back or leave

the change you introduced?

Z.

_______________________________________________

Post Messages to: Dabo-users@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Searchable Archives: http://leafe.com/archives/search/dabo-users

This message: http://leafe.com/archives/byMID/650A978048BD4FD7A96759A76816BD35@Perajoe

©2012 Zdravko Subakov