How to save as UTF-8 without BOM?

Having a question about translating phpBB3? Want to discuss and collaborate with people currently translating phpBB3? Here would be the correct place to do so.
Scam Warning
User avatar
fatprofit
Registered User
Posts: 14
Joined: Tue Mar 24, 2009 2:45 pm

How to save as UTF-8 without BOM?

Post by fatprofit »

Hi, I'm new to translating and coding.

1) I'm trying to translate into Korean, and I am using notepad ++. How do I save the file as UTF-8 (without BOM)?
When I go to:
>File
>Save as
>Save as type ---- It shows many file types but not "UTF-8 without BOM"

Am I looking in the right place ? or is "UTF-8 without BOM" called some other name?

2) Also if I want to just translate the front end of the forum in Korean, do I translate all the files in the "language" file except for the "acp" and "mods" files? If not how do I do this?

Your help is appreciated. :D
ameeck
Former Team Member
Posts: 6559
Joined: Mon Mar 21, 2005 6:57 pm

Re: How to save as UTF-8 without BOM?

Post by ameeck »

Yes, translate everything except mods and acp, don't forget the email directory. If it is a translation for personal purposes, you can omit install.php too. If you would like to submit it here, which we would welcome, you would need to translate the whole system.

Take a look here: http://wiki.phpbb.com/Text_editors

Most of those editors do not add the BOM by default - this is most often a problem of editors like Notepad in Windows.

Setting of the BOM, sometimes called identification bytes, is usually set in the Editor preferences.
User avatar
fatprofit
Registered User
Posts: 14
Joined: Tue Mar 24, 2009 2:45 pm

Re: How to save as UTF-8 without BOM?

Post by fatprofit »

ameeck wrote:Yes, translate everything except mods and acp, don't forget the email directory. If it is a translation for personal purposes, you can omit install.php too. If you would like to submit it here, which we would welcome, you would need to translate the whole system.

Take a look here: http://wiki.phpbb.com/Text_editors

Most of those editors do not add the BOM by default - this is most often a problem of editors like Notepad in Windows.

Setting of the BOM, sometimes called identification bytes, is usually set in the Editor preferences.

THANK YOU for your help. You are helpful. I think I got it.

By the way, what does UTF-8 without BOM mean? Is this a type of coding language??
ameeck
Former Team Member
Posts: 6559
Joined: Mon Mar 21, 2005 6:57 pm

Re: How to save as UTF-8 without BOM?

Post by ameeck »

At the beginning of a utf8 file, you can specify a few bytes that tell something about the file, see wiki for more details.

The problem is that some older servers or vendor-specific servers have a problem interpreting them and throw errors because the scripts produce output before they should.
User avatar
fatprofit
Registered User
Posts: 14
Joined: Tue Mar 24, 2009 2:45 pm

Re: How to save as UTF-8 without BOM?

Post by fatprofit »

Hi

Just want to make sure that I'm saving the file correctly, before spending hours and hours translating and finding out at the end it was done wrong.

Can someone who knows about Notepad ++ confirm that I'm selecting the right options in Notepad++. To me it appears there are two areas you need to select "UTF-8 without BOM" being:

1) >Click on "Format"
>Select "Encode in UTF-8 without BOM"

2) >Click on "settings"
>Click on "Preferences"
>Click on "new document/open save directory"
>Select "UTF-8 without BOM"

Is this correct? I just want to make sure because it seems odd that you would have to make the selection twice.

Thanks. :D
ameeck
Former Team Member
Posts: 6559
Joined: Mon Mar 21, 2005 6:57 pm

Re: How to save as UTF-8 without BOM?

Post by ameeck »

Yes, that is absolutely correct.

One of the settings applies to new files, the other to the current file. The second setting should be enough though.
User avatar
coaster01
Registered User
Posts: 55
Joined: Tue Nov 20, 2007 12:29 am

Re: How to save as UTF-8 without BOM?

Post by coaster01 »

I just downloaded and installed a new version of Notepad++, v5.3.1, which I was tickled to see has an option in the preferences to automatically convert to UTF-8 without BOM when opening an ANSI file.
~Tim~
isNumB
Registered User
Posts: 86
Joined: Thu Aug 06, 2009 7:59 am

Re: How to save as UTF-8 without BOM?

Post by isNumB »

this post helped me a lot. Thanks for your way to save a file in UTF-8 without BOM format... ;)
TerrificInTahoma
Registered User
Posts: 1
Joined: Thu Jul 07, 2011 3:50 am

Re: How to save as UTF-8 without BOM?

Post by TerrificInTahoma »

had a broken link. (No Capitalization on 2nd word -fails link lookup)

the one that worked for me is http://wiki.phpbb.com/Text_Editors

Return to “[3.0.x] Translations”