View Single Post
  #1 (permalink)  
Old 6th May 2007, 09:56 PM
mulligan's Avatar
mulligan mulligan is offline
Senior Member
 
Join Date: Jan 2006
Posts: 4,254
iTrader: (78)
Rep Power: 2055
mulligan will become famous soon enoughmulligan will become famous soon enoughmulligan will become famous soon enoughmulligan will become famous soon enoughmulligan will become famous soon enoughmulligan will become famous soon enoughmulligan will become famous soon enoughmulligan will become famous soon enough
Unicode/UTF-8 and PHP and a possible solution?

In an ordinary PHP editor if I paste unicode characters into it they show up as ????

So to try and get round this I open whatever PHP file Im working on in notepad, insert whatever unicode I want into the file and then save the file using the unicode or utf-8 encoding.

To force it to save as a PHP file I just enclose the file name in "double quotes" so it would I look type something like "template.php" into the File Name box

This seems to work but do any of you experts know if this is Ok to do or is it likely to cause problems somewhere down the line?

(I haven't had any problems so far)

Or is there a unicode compliant PHP editor available or does PHP and unicode just not mix well?

(I am totally new to PHP so any input is welcome)
Reply With Quote