Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In that case, it should replace ö with o, etc.


I have a screenscraping thing in place that targets an ASCII only environment (LambdaMOO mud). Manually replacing unicode stuff like this has been a pain in the butt. Luckily that was all just for fun and didn't need to be perfect.

Is there a good library out there (in any language) that does good unicode --> ASCII substitutions for major languages?


I once used latin1_to_ascii (The Unicode Hammer) in python: (works great) http://code.activestate.com/recipes/251871/


Awesome thanks. Two coincidences: this fun mud thing is in Python (works via RPC)... and the entry method name is "hammer," heh.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: