Writing Euro symbol with utf encoding

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

    Writing Euro symbol with utf encoding

    Hello All
    I am writing a string from the database into a text file which contains
    "Euro" symbol . I have tried using iconv() and utf_encode and
    mb_convert_enco ding() functions to convert the string to Unicode but the
    text file created has just a square box in place of the Euro symbol. Can
    anybody help me in this matter ?
    Thanks in advance
    VK


  • Andy Hassall

    #2
    Re: Writing Euro symbol with utf encoding

    On Thu, 16 Oct 2003 18:56:59 +0100, "VK" <vgopalNOSPAMkn ow@hotmail.com> wrote:
    [color=blue]
    >I am writing a string from the database into a text file which contains
    >"Euro" symbol . I have tried using iconv() and utf_encode and
    >mb_convert_enc oding() functions to convert the string to Unicode but the
    >text file created has just a square box in place of the Euro symbol. Can
    >anybody help me in this matter ?[/color]

    What character set is the original file in?

    --
    Andy Hassall (andy@andyh.co. uk) icq(5747695) (http://www.andyh.co.uk)
    Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)

    Comment

    • VK

      #3
      Re: Writing Euro symbol with utf encoding

      Andy Hassall wrote:[color=blue]
      > On Thu, 16 Oct 2003 18:56:59 +0100, "VK"
      > <vgopalNOSPAMkn ow@hotmail.com> wrote:
      >[color=green]
      >> I am writing a string from the database into a text file which
      >> contains "Euro" symbol . I have tried using iconv() and utf_encode
      >> and mb_convert_enco ding() functions to convert the string to Unicode
      >> but the text file created has just a square box in place of the Euro
      >> symbol. Can anybody help me in this matter ?[/color]
      >
      > What character set is the original file in?[/color]

      The text file is created on the fly as a ".txt" file. If i can create a
      UTF-8 file i think i can get away with not encoding the string. But i cant
      seem to be able to write the Byte Order Mark in the txt file.
      Thanks for your reply.


      Comment

      Working...