Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UTF-8 question

Status
Not open for further replies.

kaancho12

Technical User
Feb 22, 2005
191
hi,
I am writing some text to a file but before that i am using utf8_encode to encode it to UTF-8. Is this the write way to create a file to encode it.
for ex:
$str=utf8_encode("some strin");
fwrite($str,filehandle);

also is there a way to check if the new file is encoded in the UTF-format?
thanks
ko12
 
you mean a string in unicode post through wbpage (say as a POST var) through some form, you want to save as unicode file right?
well I am trying to find solution for the same thing.
Problem: a unicode string past through browser, received at the other end and saved as some file, the chars are in ascii??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top