TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,231
  • Total Topics: 21,353
  • Online today: 606
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 431
  • Total: 431

PHP Articles and PHP blocks problem

Started by saks, October 27, 2010, 10:42:49 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

saks

In my site after update to TP 1.0RC1 i there was a problem with the coding of the Russian text in UTF-8. When I save the text, he will be transformed to not clear symbols though in a database the data remains correctly. As a result blocks and articles PHP with the Russian text are displayed not correctly.

This problem is only in blocks and articles PHP type.

How to me to eliminate this problem?

saks

Ok! Who knows what part of a code is responsible for a conclusion to the screen of the editor of PHP block and a code in him for the created block?

IchBin

saks2008, this is a problem that only Bloc can handle. He has been really busy and not around much lately, so you'll just have to wait for him to come around. If I were you I would post your problem in the bug tracker.
http://www.tinyportal.net/index.php?project=1

saks

ok! thank you very much! I and will make

IchBin

I know it's been a while saks, but can you tell me a few things? Does this only happen with old blocks? Does it look the same if you create a new block? Can you provide me with some test cases? Now that I'm doing Development for this project I'd like to try and understand and hopefully fix this problem for you. :)

saks

Oо! It is remarkable! The problem is observed only in PHP blocks and PHP articles. It arises if I edit the old blocks created still before updating TP and if I create new blocks.
P.S. All English text and code is ok, but Russian UTF-8 text is damaged after i click save button  :-\

IchBin

Can you show me some text that has the problem? I can't type the text on an English keyboard. :) Show me the before and after text so maybe it will help.

saks

Quote from: IchBin on December 11, 2010, 04:19:48 PM
Show me the before and after text so maybe it will help.
Yes! look this
before text : пÃ'â,¬ÃÂ¾ÃÂ²ÃÂµÃ'â,¬ÃÂºÃÂ° Ã'â,¬ÃÂ°ÃÂ±ÃÂ¾Ã'‚Ã'‹ блока
after save text : ÐÃ,¿Ã‘�ÐÃ,¾ÃÃ,²ÃÃ,µÃ‘�ÐÃ,ºÃÃ,° Ñ�ÐÃ,°ÃÃ,±ÃÃ,¾Ã‘�� ÐÃ,±ÃÃ,»ÃÃ,¾ÃÃ,ºÃÃ,°

ZarPrime

Saks,

Could you post those again using code tags (#) so that Ichbin can see exactly what code you used.  When you just Just post it without code tags, it could possibly not be formatted correctly.  Something like this ...

Before ...

пÃ'â,¬ÃÂ¾ÃÂ²ÃÂµÃ'â,¬ÃÂºÃÂ° Ã'â,¬ÃÂ°ÃÂ±ÃÂ¾Ã'‚Ã'‹ блока


After ...

ÐÃ,¿Ã‘�ÐÃ,¾ÃÃ,²ÃÃ,µÃ‘�ÐÃ,ºÃÃ,° Ñ�ÐÃ,°ÃÃ,±ÃÃ,¾Ã‘�� ÐÃ,±ÃÃ,»ÃÃ,¾ÃÃ,ºÃÃ,°


Thanks,
ZarPrime

IchBin

That is exactly what he posted Zar. No code involved, just text. I'm gonna test this out and see how things work for me.

This website is proudly hosted on Crocweb Cloud Website Hosting.