zgkhoo Posted October 30, 2007 Share Posted October 30, 2007 Is the UTF format needed if write a multiple language site? What if I didn't set the UTF format? What would happen? Thanks... Link to comment https://forums.phpfreaks.com/topic/75308-is-the-utf-format-needed-if-write-multiple-language-sites/ Share on other sites More sharing options...
zgkhoo Posted October 30, 2007 Author Share Posted October 30, 2007 *bump* Link to comment https://forums.phpfreaks.com/topic/75308-is-the-utf-format-needed-if-write-multiple-language-sites/#findComment-380956 Share on other sites More sharing options...
~n[EO]n~ Posted October 30, 2007 Share Posted October 30, 2007 Yes you need to use it for multi language site Link to comment https://forums.phpfreaks.com/topic/75308-is-the-utf-format-needed-if-write-multiple-language-sites/#findComment-380962 Share on other sites More sharing options...
kopytko Posted October 30, 2007 Share Posted October 30, 2007 You dont need to use utf in multi language sites, but you should. In utf every sign is described by sequence of bytes. Thanks to that, any strange language can be display in proper way. Link to comment https://forums.phpfreaks.com/topic/75308-is-the-utf-format-needed-if-write-multiple-language-sites/#findComment-380965 Share on other sites More sharing options...
zgkhoo Posted October 30, 2007 Author Share Posted October 30, 2007 how to define *.php page to UTF format? Link to comment https://forums.phpfreaks.com/topic/75308-is-the-utf-format-needed-if-write-multiple-language-sites/#findComment-380977 Share on other sites More sharing options...
kopytko Posted October 30, 2007 Share Posted October 30, 2007 header('Content-Type: text/html; charset=utf-8'); Remeber to convert all your files to utf in editor that you are using. Link to comment https://forums.phpfreaks.com/topic/75308-is-the-utf-format-needed-if-write-multiple-language-sites/#findComment-380987 Share on other sites More sharing options...
zgkhoo Posted October 30, 2007 Author Share Posted October 30, 2007 how convert? how can i know my *.php currently=which format? i using zend studio now.. is it mysql db also need convert to UTF? Link to comment https://forums.phpfreaks.com/topic/75308-is-the-utf-format-needed-if-write-multiple-language-sites/#findComment-381005 Share on other sites More sharing options...
kopytko Posted October 30, 2007 Share Posted October 30, 2007 I dont know how to change it in Zend Studio, i dont use it. You should look for it in project options or in properties of file in project. Database also should be utf encoded. Link to comment https://forums.phpfreaks.com/topic/75308-is-the-utf-format-needed-if-write-multiple-language-sites/#findComment-381012 Share on other sites More sharing options...
aschk Posted October 30, 2007 Share Posted October 30, 2007 Setting that in the header shouldn't matter. What you need is the encoding in your html head tag. Also YES, you will need to store the data as UTF8 format in your database in order to maintain cross language integrity, otherwise you'll be dropping a lot of characters if you store in another format. Link to comment https://forums.phpfreaks.com/topic/75308-is-the-utf-format-needed-if-write-multiple-language-sites/#findComment-381022 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.