Textile bug: swallows non-ascii characters

Sunday, November 28th 2004
## The problem It seems like *Textile doesn't play well with non-English languages*. As I haven't seen any solutions anywhere, I'm posting this trackback. Maybe it's fixed, I don't know, but here we go anyway. (I also [posted this on the WP Support forum](http://wordpress.org/support/index.php?action=vthread&forum=3&topic=16021&page=-1#12), slightly modified here for readability) ## The Bug Textile 1 and 2 both *swallow non-ascii characters*. I just fixed it myself on this blog (where 'æ', 'ø' and 'å' disappeared). More specifically, the encode_high() function is the culprit. ## The workaround The simple and dirty fix is to *comment the line that runs this function*, e.g. for Textile 1:
... if (function_exists('mb_encode_numericentity')) { #$text = encode_high($text); } else { ...
This is *line 60*, the file is *wp-content/plugins/textile1.php* ## The puzzlement I really don't understand _why_ you need encode_high() at all. My blog seems *perfectly fine without it*... But I haven't bothered to investigate it too much, now that it works for me.