I used the code here to do this. It's just an array of substitutions, so you can obviously edit it if it doesn't meet your requirements. Clearly it's a lot less powerful than iconv, but it may be sufficient (and it runs on Windows too :).
http://lehelk.com/2011/05/06/script-to-remove-diacritics/ On Sunday, 29 April 2012 21:41:35 UTC+1, mscdex wrote: > > On Apr 29, 2:32 pm, "P. Douglas Reeder" <[email protected]> wrote: > > ...but this is not entirely satisfactory. In particular, I'd like to > > do preserve meaning through conventional substitutions such as ae for > > German รค. Any suggestions? > > Your best bet will probably be using the iconv module (https:// > github.com/bnoordhuis/node-iconv) with the //TRANSLIT option. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
