Convert ASCII chars to Unicode FULLWIDTH latin letters in Python?

Can you easily convert between ASCII characters and their Asian full-width Unicode wide characters? Like:

0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~

to

0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!゛#$%&()*+、ー。/:;〈==〉?@[\\]^_‘{|}~

Answers


Those "wide" characters are named FULLWIDTH LATIN LETTER: http://www.unicodemap.org/range/87/Halfwidth%20and%20Fullwidth%20Forms/

They have range 0xFF00 - -0xFFEF. You can make look-up table or just add 0xFEE0 to ASCII code.


Need Your Help

VS2008 Setup Project: Uninstalling the previous MSI

c# visual-studio winforms windows-installer installation

I have a VS2008 setup project, which creates a setup.msi which installs a WinForms application (C#).

Conversion of strings containing non printable characters

c# encoding non-printable

I would like to convert a byte array containing non printable characters to string for my application. When I convert back to byte array, the contents of the array should remain the same as I found...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.