×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: PHP5 - russian charset is wrong

PHP5 - russian charset is wrong 14 years 10 months ago #5256

  • Alex
  • Alex's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 39
  • Thank you received: 0
Hi again,

Joomlacomment was working nearly fine on php4.
Now, I've upgraded to PHP5 and surprisingly all joomlacomment output appears as question marks - ????????

The comments itself are fine. The rest of Joomla is also fine. Only things such as "add new message", "quote" etc appear broken.

My joomla site is in utf8. Jommlacomment also has utf8 in "local charset" field.

Here is how I've upgraded my hosting to php5: I've created .htaccess file and put this line:
AddHandler application/x-httpd-php5 .php .php4 .php3 .phtml

I even uninstalled joomlacomment, changed to php5 and installed it again - same thing... Can ypu help, please?

PHP5 - russian charset is wrong 14 years 10 months ago #5258

  • Alex
  • Alex's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 39
  • Thank you received: 0
Here is a solution:
use russian.php3 from previous Joomlacomment (alpha3)

Something is wrong with the new one...
Obvious difference is in the new one "define" is used instead of JOSC_define

I've changed new file with JOSC_define but it did not help, still outputs ?????
I think there must be invalid characters somewhere is the new file...

I would be glad to help if you tell me what to look for.

PHP5 - russian charset is wrong 14 years 10 months ago #5259

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
For me the russian file seems OK. no ???? characterrs - it is also saved as utf8.

PHP5 - russian charset is wrong 14 years 10 months ago #5262

  • Alex
  • Alex's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 39
  • Thank you received: 0
Daniel Dimitrov wrote:

For me the russian file seems OK. no ???? characterrs - it is also saved as utf8.


I have no idea.... could be my dodgy hosting...

PHP5 - russian charset is wrong 14 years 10 months ago #5263

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Would you give us a link to your website?

When you open the russian file can you read it?

PHP5 - russian charset is wrong 14 years 9 months ago #5344

  • Alex
  • Alex's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 39
  • Thank you received: 0
Hi Daniel,

its www.gorbostroyka.ru

I've send you all access details...


Regarding the file:

I can read the file in notepad. If I use TextPad, it shows the error: the file contains characters that do not exists in code page 1252 (Ansi - Latin I)
The TextPad displays question marks instead of russian characters. But this behaviour is the same for both old and new file.

On Wintel box both files works fine.

Will be glad to help more... but can not understand the difference between files...

Alex

PHP5 - russian charset is wrong 14 years 9 months ago #5508

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey there Alex,
I've just checked your site and I don't see any probelms with it. All text are readable for me? or did I miss something. Point me to the exact path of a post please.

PHP5 - russian charset is wrong 14 years 9 months ago #5525

  • Alex
  • Alex's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 39
  • Thank you received: 0
It is fine because I put old version of Russian.php. Try to replace it with current version and see the difference...

PHP5 - russian charset is wrong 14 years 9 months ago #5574

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Ok, I've tested it and you are absolutly right!
I don't know why you have this problem and I also can not find who sent me the russian.php file, so at this stage I will add the old file to beta2.

Alex if you have the time, please feel free to translate the english.php in russian language. thank you!
  • Page:
  • 1
Time to create page: 0.149 seconds