By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,417 Members | 1,856 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,417 IT Pros & Developers. It's quick & easy.

Writing Euro symbol with utf encoding

P: n/a
VK
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_encoding() 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
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Thu, 16 Oct 2003 18:56:59 +0100, "VK" <vg**************@hotmail.com> wrote:
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_encoding() 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 ?


What character set is the original file in?

--
Andy Hassall (an**@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)
Jul 17 '05 #2

P: n/a
VK
Andy Hassall wrote:
On Thu, 16 Oct 2003 18:56:59 +0100, "VK"
<vg**************@hotmail.com> wrote:
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_encoding() 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 ?


What character set is the original file in?


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.
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.