Page 1 of 1

[1.4.7] Bulgarian language Encoding issue

Posted: Fri Apr 16, 2010 2:02 am
by crazymaster
i just edited the admin panel language files in 1.4.7
now they are transleted into bulgarian language, but there are charset problem - i can't see the text correctly, but if i select the encoding to charset-1251 from my Browser - everything is OK

i tried to include charset-1251 in the:
admin/php.ini
admin\view\template\common\header.tpl

but without results

what should i do ?

Re: [1.4.7] Bulgarian language Encoding issue

Posted: Fri Apr 16, 2010 5:59 pm
by crazymaster
how to fix the problem?
maybe people with russian language can help ?

Re: [1.4.7] Bulgarian language Encoding issue

Posted: Fri Apr 16, 2010 6:01 pm
by OSWorX
Guess you have to adopt the header.tpl (admin) where the encoding is hard coded to utf-8

Re: [1.4.7] Bulgarian language Encoding issue

Posted: Fri Apr 16, 2010 7:38 pm
by crazymaster
what to do with header.tpl?
i tried to remove the utf-8, to add charset 1251, to add them both, but no results ?
check this screenshot...
the strange thing is that the currency is showing correctly:
untitled.JPG

untitled.JPG (110.18 KiB) Viewed 6577 times


Re: [1.4.7] Bulgarian language Encoding issue

Posted: Fri Apr 16, 2010 11:38 pm
by OSWorX
Which encoding did you use to translate and save the language files?

Re: [1.4.7] Bulgarian language Encoding issue

Posted: Sat Apr 17, 2010 12:48 am
by crazymaster
OSWorX wrote:Which encoding did you use to translate and save the language files?
i just copied the english files and edited them
i didn't found something to other to change?

Re: [1.4.7] Bulgarian language Encoding issue

Posted: Sat Apr 17, 2010 12:55 am
by OSWorX
crazymaster wrote:
OSWorX wrote:Which encoding did you use to translate and save the language files?
i just copied the english files and edited them
i didn't found something to other to change?
Then you used UTF-8 as encoding.
The encoding must be set in the editor at saving the file(s).

Re: [1.4.7] Bulgarian language Encoding issue

Posted: Sat Apr 17, 2010 4:22 am
by crazymaster
Thanks OSWorX !
I didn't knew that!
Now everything is OK.
I will upload the bulgarian language and a few other plugins in the Extensions section soon, so and other people will be able to use them :)

Re: [1.4.7] Bulgarian language Encoding issue

Posted: Sun Apr 18, 2010 5:51 am
by crazymaster
Warning: Cannot modify header information - headers already sent by (output started at /home/crazymas/public_html/AUTOCOLORTUNING.COM/admin/language/bulgarian/bulgarian.php:1) in /home/crazymas/public_html/AUTOCOLORTUNING.COM/system/engine/controller.php on line 27

how can i fix this problem?
when i try to login it shows it, if i enter the URL again, it takes me to admin panel?

Re: [1.4.7] Bulgarian language Encoding issue

Posted: Sun Apr 18, 2010 9:33 pm
by crazymaster
it is possible this problem to be a problem of open cart?
i have dowloaded the first version/a few minutes after it was released/ ?

edit:
i found that the problem is in encoding

if i change the encoding to ANSI(all files on the server are in this encoding)- everything will be OK with this errors, but i dont see bulgarian characters correctly. so when i get it back to UTF-8 characters are OK, but i am getting this error and above the header logo i have about 10px white space, which i dont have usually

how i can fix this problem?

edit:
27-th line says:

Code: Select all

header('Location: ' . str_replace('&', '&', $url));
EDIT2:
Problem is fixed - the problem was that bulgarian files was with encoding UTF-8, when i changed them to UTF-8 without BOM - everything was OK
Soon when i translete everything - i will upload the files in Languages section :)

Re: [1.4.7] Bulgarian language Encoding issue

Posted: Mon Apr 19, 2010 2:59 pm
by OSWorX
crazymaster wrote:EDIT2:
Problem is fixed - the problem was that bulgarian files was with encoding UTF-8, when i changed them to UTF-8 without BOM - everything was OK
Soon when i translete everything - i will upload the files in Languages section :)
Ever (!!!) save files (specially translations) WITHOUT BOM, otherwise you are using UTF-32 (very rare cases).
See also: http://en.wikipedia.org/wiki/Byte_order_mark

Re: [1.4.7] Bulgarian language Encoding issue

Posted: Mon Apr 26, 2010 4:00 pm
by stanislav
Hi guys,

where can I download opencart BULGARIAN language (for 1.4.7)?

Thanks

Re: [1.4.7] Bulgarian language Encoding issue

Posted: Mon Apr 26, 2010 4:58 pm
by mehdicomp
Warning: Cannot modify header information - headers already sent by (output started at /home/farajahe/public_html/shop/catalog/language/persian/persian.php:1) in /home/farajahe/public_html/shop/system/library/currency.php on line 43Warning: Cannot modify header information - headers already sent by (output started at /home/farajahe/public_html/shop/catalog/language/persian/persian.php:1) in /home/farajahe/public_html/shop/system/engine/controller.php on line 27
helppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp

Re: [1.4.7] Bulgarian language Encoding issue

Posted: Mon Apr 26, 2010 7:19 pm
by OSWorX
Why crying so loud for help?
Read this topic and follow all advices.

Re: [1.4.7] Bulgarian language Encoding issue

Posted: Fri Feb 04, 2011 11:27 pm
by KuriN
I did everything on this topic - Verified that the encoding was UTF-8 without BOM, but still the problem persists. Any other ideas?

EDIT:
Ok, found the problem!

If you modify the "powered by open cart" in the language you are using (in this case Bulgarian) - MAKE SURE YOU SAVE IT IN UTF-8 WITHOUT BOM !!!

So if you are using windows notepad, download notpad++ and modify the file /catalog/language/bulgarian/common/footer.php to be in the right encoding!!!

EDIT2:
This also fixes the problem with changing the currency!