Re: [dom4j-user] Problem with UTF-8 encoding

2006-01-09 Thread Assaf Urieli
PS I meant that using InputStreamReader allows you to override the default encoding, not changing the file's name from "encoding" to "test"! (Oh oh, talking to myself again aren't I!) Best regards, Assaf Urieli Joliciel Informatique http://www.joli-ciel.com Assaf Urieli wrote: >Found my own so

Re: [dom4j-user] Problem with UTF-8 encoding

2006-01-09 Thread Assaf Urieli
Found my own solution - it's got nothing to do with dom4j, but rather with java.io. Use: FileInputStream is = new FileInputStream("data/test.tmx"); InputStreamReader reader = new InputStreamReader(is, "UTF-8"); Instead of: FileReader fileReader = new FileReader("data/encodin

[dom4j-user] Problem with UTF-8 encoding

2006-01-09 Thread Assaf Urieli
Hi all, Using dom4j 1.6.1. I have the following XML file (in location data/encoding.xml): ** fatigué ** (in case the e-mail messes up the encoding, the last letter in the "test" tag is e with an accute accent) The fo