Problems making UTF-8 text XML/XHTML friendly (no entity conversion?)

Discussion in 'Ruby' started by Sean Russell, Jun 1, 2004.

  1. Sean Russell

    Sean Russell Guest

    Thomas Strömberg <> wrote in message news:<2004053113022116304%thomasNOMORESPAM@strombergorg>...
    > I made some headway trying to use unpack("U") when I ran into high
    > ascii characters, but it did not seem to handle my test case very well.
    > REXML's normalize function did not help either. Here is the test-case I
    > am trying to handle, from http://toadstool.se/temp/utf (you may want to
    > fetch the file instead of relying on what's pasted below)


    You have to tell REXML that you want ASCII output, and write the
    document out to get it to normalize text. All XML is UTF-8 by
    default, unless you specify some other encoding in the XML
    declaration.

    --- SER
     
    Sean Russell, Jun 1, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Arifi Koseoglu
    Replies:
    2
    Views:
    1,036
    Arifi Koseoglu
    Apr 13, 2004
  2. markla
    Replies:
    1
    Views:
    580
    Steven Cheng
    Oct 6, 2008
  3. xhtml champs
    Replies:
    0
    Views:
    566
    xhtml champs
    Aug 1, 2011
  4. xhtml champs
    Replies:
    0
    Views:
    1,083
    xhtml champs
    Aug 2, 2011
  5. Thomas Strömberg
    Replies:
    1
    Views:
    119
    Carlos
    May 31, 2004
Loading...

Share This Page