this might help you although we are using latin1...
https://openacs.org/bboard/q-and-a-fetch-msg.tcl?msg_id=00044O