how do I write a utf-8 encoded file?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • burdeen

    how do I write a utf-8 encoded file?

    i'm using fopen() to create an xml file... unfortunately I have utf-8
    encoded data in my xmldom object which I'm trying to write to this xml
    file. It seems that fopen() only supports ANSI and simple accented
    characters are replaced with a ?.

    How do I write a utf-8 format file in php?
  • John Wellesz

    #2
    Re: how do I write a utf-8 encoded file?

    On 05 avr. 2004, Sir paul.burden@kin gproducts.com (burdeen) claimed in
    news:1b62743a.0 404050551.133f5 e52@posting.goo gle.com:
    [color=blue]
    > i'm using fopen() to create an xml file... unfortunately I have utf-8
    > encoded data in my xmldom object which I'm trying to write to this xml
    > file. It seems that fopen() only supports ANSI and simple accented
    > characters are replaced with a ?.
    >
    > How do I write a utf-8 format file in php?
    >[/color]

    make sure to open files in binary safe mode. Fopen is certainly not limited
    to ASCII text. Provide an exemple of your code so we can help you.

    Comment

    Working...