Parsing XML containing UTF8 with clojure.xml/parse

2009-08-12 Thread Meikel Brandmeyer
Dear Clojurians, I have to parse some XML files with c.x/parse. However the files contain UTF-8 characters, which end up as '?' after being parsed by c.x/parse. Is there some possibility to correctly parse the files? I suspect there is some settings somewhere in my Clojure/JVM/System which makes

Re: Parsing XML containing UTF8 with clojure.xml/parse

2009-08-12 Thread Stephen C. Gilardi
I have to parse some XML files with c.x/parse. However the files contain UTF-8 characters, which end up as '?' after being parsed by c.x/parse. Is there some possibility to correctly parse the files? I suspect there is some settings somewhere in my Clojure/JVM/System which makes the whole thing

Re: Parsing XML containing UTF8 with clojure.xml/parse

2009-08-12 Thread Meikel Brandmeyer
Hi Stephen, On Aug 12, 3:57 pm, Stephen C. Gilardi squee...@mac.com wrote: I have to parse some XML files with c.x/parse. However the files contain UTF-8 characters, which end up as '?' after being parsed by c.x/parse. Is there some possibility to correctly parse the files? I suspect

Re: Parsing XML containing UTF8 with clojure.xml/parse

2009-08-12 Thread B Smith-Mannschott
Hi Meikel, On Wed, Aug 12, 2009 at 10:16, Meikel Brandmeyerm...@kotka.de wrote: Dear Clojurians, I have to parse some XML files with c.x/parse. However the files contain UTF-8 characters, which end up as '?' after being parsed by c.x/parse. Is there some possibility to correctly parse the

Re: Parsing XML containing UTF8 with clojure.xml/parse

2009-08-12 Thread B Smith-Mannschott
On Wed, Aug 12, 2009 at 16:22, Meikel Brandmeyerm...@kotka.de wrote: Hi Stephen, On Aug 12, 3:57 pm, Stephen C. Gilardi squee...@mac.com wrote: I have to parse some XML files with c.x/parse. However the files contain UTF-8 characters, which end up as '?' after being parsed by c.x/parse.

Re: Parsing XML containing UTF8 with clojure.xml/parse

2009-08-12 Thread Meikel Brandmeyer
Hi, On Aug 12, 4:30 pm, B Smith-Mannschott bsmith.o...@gmail.com wrote: Please post code. Show us what you are trying to do, so we can help instead of just guessing. I have a file which looks roughly like this: ?xml version=1.0 encoding=UTF-8? foo bar=stuff I believe to be UTF-8 here/ In

Re: Parsing XML containing UTF8 with clojure.xml/parse

2009-08-12 Thread Richard Newman
However, I get the feeling Clojure is not the problem. I noticed, I forgot the UTF-8 on the *output*. beh.. Now, Vim seems to be happy with the file. I had a similar issue -- every Java component (e.g., Nailgun, which VimClojure uses) needs to be started with the right character set.