Some pages - no words in Cyrilic code

Aviator

No avatar

2006-11-14 18:20

Hi, ALL!
I use Windows-1251 code page. It's a problem with words in Russian Language. I put information to the order form (name, address, etc.) and want to print order details. But no Russian words in the new window with the order details. But if add any sign before Russian letters (for example '(' ',' any Latin letter) the word will appear.
The same thing in admin section. In the list of orders we can see names in Russian letters. But in the order details list no Russian words (if no sign before it).
Does anybody have any ideas how I can to correct this bug?
Any help will be kindly appreciated.

Vasily Zhidelev

andr

No avatar

2006-11-16 21:05

Hello!
You have to check your web page code in config file.
Rgds,
Andrei

gaadaa

No avatar

2007-06-25 15:56

Hi, Ihave the same problem, but in Bulgarian! I have he script woking fine on a bulgarian server, but now I want to install it on another one outside bulgaria. It doesent work fine there - it makes the same bug as the author said. Can you explain what to look for in config file?

merci

No avatar

2007-06-26 08:50

gaadaa - try to add setlocale in config/general.php file, but i don't know what should be set for your language, for polish it is like:
setlocale( LC_ALL, 'pl_PL' );
you can try search more on:
http://pl.php.net/manual/en/function.setlocale.php

gaadaa

No avatar

2007-06-26 16:44

Thanks merci, but it doesnt help me. I think something must be installed on the server in order to work fine. Do you have an idea what that migt be?

merci

No avatar

2007-06-27 09:38

gaadaa - send us a link to site where this problem occured.

gaadaa

No avatar

2007-06-27 18:44

http://povechesex.com
I've tried to install the new version but it doent work as well. You can see there are blank fields in the page that comes after sending the order.

gaadaa

No avatar

2007-06-28 10:27

The problem is solved. They didnt have the bulgarian locale installed on their server. They have installed it and it started working well!
Thanks for the support!

Emil

No avatar

2008-02-13 22:48

I have the same problem. I tried to solve it with setlocale but it didn't work out.

Please help!

treewood (OpenSolution)

Avatar: treewood

2008-02-14 07:55

Emil - what did You add to setLocale? Send here a code you added.

Emil

No avatar

2008-02-14 08:23

I wasn't sure what to add and in the end I added this code:

if (!setlocale(LC_ALL'bg_BG.utf8')) {
setlocale(LC_ALL'bgr_BGR.utf8');
}

Emil

No avatar

2008-02-14 09:00

I've just made it work!
This works

<? php setlocale('LC_ALL''bg_BG') ;?>

Back to top
about us | contact