MyBB Community Forums

Full Version: illegible Letters
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

After the transfer Host, below problem is occured.
The last letter of each line is illegible.
Is It related to the function of php?

[Image: 123.png]

LINK:
http://www.iran-forum.ir/index.php

Thanks.
Try reuploading the language packs?
Yes, but not solved.
I think, the reason is a function of PHP.
What do you think?
Thanks.
please someone help to solve this problem ... Sad
Thanks
Pars,

This is a common bug among PHP based web applications and it depends on the platform, the code, etc. In breif, what happens is this:

Unicode characters (like Persian letters) use more than one byte (unlike ASCII characters, which are one byte each). The truncating function (which keeps the first 15 letters of each link's text and replace the rest with ...) should be careful not to break the last character from the middle of its multi-byte data; otherwise, you'll end up with gibberish (broken characters).

This can't be fixed with re-uploading language packs. The solution usually involves using Unicode-friendly truncate functions and this usually depends on the environment too.

Which version of MyBB are you using? Can you provide a link to your forum? Also, what is the difference between your previous and new host? (For example, did you move from a Linux host to a Windows host?)
The new host most likely doesn't have multibyte/iconv/unicode PHP extensions installed. Any of those would help Par's problems.
(2010-01-24, 06:58 AM)Huji Lee Wrote: [ -> ]Which version of MyBB are you using? Can you provide a link to your forum? Also, what is the difference between your previous and new host? (For example, did you move from a Linux host to a Windows host?)
1.4.11
http://www.iran-forum.ir/index.php
difference is to hardware, not software. (both is Linux)

(2010-01-24, 08:10 AM)Ryan Gordon Wrote: [ -> ]The new host most likely doesn't have multibyte/iconv/unicode PHP extensions installed. Any of those would help Par's problems.
pending


Question:
A function is to restrict the characters (function of PHP). What is it name?

Thanks
(2010-01-24, 11:27 AM)Pars Wrote: [ -> ]
(2010-01-24, 08:10 AM)Ryan Gordon Wrote: [ -> ]The new host most likely doesn't have multibyte/iconv/unicode PHP extensions installed. Any of those would help Par's problems.
pending
Run phpinfo on both servers, compare them to see what else is different in the two (other than hardware).

(2010-01-24, 11:27 AM)Pars Wrote: [ -> ]Question:
A function is to restrict the characters (function of PHP). What is it name?

Thanks
Ask in a PHP forum, not a MyBB one!