[EN] Editing phpBB (language) files the right way

User avatar

Topic author
thomas.d
Former Team Member
Posts: 625
Joined: 20. January 2008 00:56
phpBB.de User: thomas.d
phpBB.com User: thomas.d

[EN] Editing phpBB (language) files the right way

Post by thomas.d »

FAQ Table Of Contents / Inhaltsverzeichnis

phpBB 3.0.x language files are encoded as "UTF-8 without BOM" (BOM = "byte-order mark"). Since php-scripts can not deal with a BOM, they will put out an error-message concerning the "header information".

German authors will encounter the UTF-8-matter especially with German "Umlauts" (i.e. Ä, Ö, or Ü). If these are entered into a php-script just by typing the character via the keyboard, and the correct encoding is not set, the script won't run.

According to the phpBB 3.0.x coding-guidelines it is illegal, to use "html-entities" instead (i.e. "Ä" for "Ä" or "ö" for "ö".

The solution here is an editor, which provides the ability to encode the php-files correctly as "UTF-8 without BOM". Such an editor is for instance "Notepad++".

In an "UTF-8 without BOM"-ready editor - if the correct encoding is set - German "Umlauts" can be typed right from the keyboard.

FAQ Table Of Contents / Inhaltsverzeichnis
Last edited by Kevin on 15. August 2008 07:39, edited 1 time in total.
Reason: Added link to notepad++
Viele Grüße

Thomas

Deutsche Sprachdateien für
[Alpha] phpBB Calendar 0.0.8 (alightner) | [RC] phpBB Arcade 1.0.RC8 |
ACP Add User MOD 1.0.0 |

Return to “KB-Archiv”