Thank you.<br><br>That is exactly what I was looking for.<br><br><div class="gmail_quote">2008/7/2 Jim <<a href="mailto:jim.hefferon@gmail.com">jim.hefferon@gmail.com</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">Peter Bulychev wrote:<br>
> I want to convert unicode character into ascii one.<br>
</div>You have to make some arbitrary choices of what to translate.  Based<br>
on some materials on  effbot's site, and a recipe, I made<br>
  <a href="ftp://alan.smcvt.edu/hefferon/unicode2ascii.py" target="_blank">ftp://alan.smcvt.edu/hefferon/unicode2ascii.py</a><br>
which has at least some of what you are looking for.<br>
  $ grep HYPHEN unicode2ascii.py<br>
    u'\N{SOFT HYPHEN}':u'-',<br>
    u'\N{HYPHEN}':u'-',<br>
    u'\N{NON-BREAKING HYPHEN}':u'-',<br>
    u'\N{SOFT HYPHEN}': '-',<br>
No doubt I have some terrible gaffes and some things missing.<br>
Corrections appreciated.<br>
<font color="#888888"><br>
Jim<br>
</font><div><div></div><div class="Wj3C7c">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br> Peter Bulychev.