1

Topic: pun_trim remove some chars in arabic language

function pun_trim($str)
{
    $fishy_chars = array(chr(0x81), chr(0x8D), chr(0x8F), chr(0x90), chr(0x9D), chr(0xA0), chr(0xCA), ' ');

    return trim(str_replace($fishy_chars, ' ', $str));
}

arabic char is

chr(0xA0)  
chr(0xCA)

it make my post funny when reading,
you are remove   but you not need that in post message becuase it showed as it.

If your people come crazy, you will not need to your mind any more.

Re: pun_trim remove some chars in arabic language

Has been reported and fixed already. Here's the fix.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

3

Re: pun_trim remove some chars in arabic language

Yay, nice track big_smile

your are remove & nbsp; from code tag what if i need put some code of html?

If your people come crazy, you will not need to your mind any more.

Re: pun_trim remove some chars in arabic language

Look at the fix I linked to. It no longer replaces non-breaking spaces with regular spaces. I just haven't updated these forums yet.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

5

Re: pun_trim remove some chars in arabic language

Ah sorry we must to get used to this color of tracker, maybe install it in my work, thanks.

If your people come crazy, you will not need to your mind any more.