Author Topic: UNICODE / UTF8 / UTF16 related  (Read 67056 times)

0 Members and 1 Guest are viewing this topic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
UNICODE / UTF8 / UTF16 related
« 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:

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.

This topic will be updated as more information become available.
« Last Edit: August 18, 2009, 03:05:11 PM by V@no »
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)