4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
August 21, 2017, 12:51:04 AM

Login with username, password and session length
Search:     Advanced search
4images is now on facebook. Click here and become a fan!
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Help / Hilfe
| |-+  FAQ, Tips
| | |-+  UNICODE / UTF8 / UTF16 related
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: UNICODE / UTF8 / UTF16 related  (Read 58375 times)
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 565

mmm PHP...


View Profile WWW
« on: July 09, 2009, 05:15:00 PM »

Technically UNICODE, UTF8 and UTF16 are little different from each other, but all of them are multi-byte encodings. For the end user (You) such technical details are not important, so in this topic to save time and typing I will refer to all these encodings as one type: UNICODE


There are few aspects needs to be remember when you work with UNICODE and 4images / PHP:

1) your editor must have ability save files without BOM. Windows' "Notepad" and "Wordpad" don't have such option, so do not use them. There are plenty of free text/php editors that you can use (a few to mention: notepad++, notepad2)
If you save files with BOM, you might get bunch of errors, example:
Quote  [Expand]

Warning: Cannot modify header information - headers already sent by (output started at /4images/yourfile.php:1) in /4images/admin/admin_functions.php on line 168

Some editors (UltraEdit) might have problem saving UNICODE files without BOM if original file was saved with BOM. The work around is create a new file, copy text from the original file and then save the new file without BOM.


2) 4images does NOT support .html templates saved in UNICODE. Template files must be saved in ASCII (single byte) encoding.




P.S.
This topic will be updated as more information become available.
« Last Edit: August 18, 2009, 03:05:11 PM by V@no » Logged

Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.036 seconds with 19 queries.