Codoforum related discussions
Greek encoding

Hi,
I try to set it to Greek.

I saw at the db the omessage at the table post.
There it stores the post not with the UTF-8 characters but with html (& alpha; ...)
And the page source has no Greeks only html characters
Why.

Is there any solutiuon to speak Greek ?

Thank you

Hi, I try to set it to Greek. I saw at the db the omessage at the table post. There it stores the post not with the UTF-8 characters but with html (& alpha; ...) And the page source has no Greeks only html characters Why. Is there any solutiuon to speak Greek ? Thank you
edited Apr 13 '16 at 12:33 pm

I had the issue with my Vietnamese language.

You can try to un-decode the Greek characters.

https://github.com/nguoianphu/codoforums-vietnam/blob/master/sys/CODOF/Format.php

Like this

    public static function omessage($mesg) {
        // nguoianphu - don't want to encode the alt in img tag
        // $html = new \Ext\Html();

        //$imesg; no escaping required
        // $mesg = $html->filter(str_replace("
        // nguoianphu - don't want to encode the alt in img tag
        $mesg = str_replace(", "<", $mesg);
        return $mesg;
    }
I had the issue with my Vietnamese language. You can try to un-decode the Greek characters. ``` https://github.com/nguoianphu/codoforums-vietnam/blob/master/sys/CODOF/Format.php ``` Like this ``` public static function omessage($mesg) { // nguoianphu - don&#039;t want to encode the alt in img tag // $html = new \Ext\Html(); //$imesg; no escaping required // $mesg = $html-&gt;filter(str_replace(&quot;STARTCODOTAG&quot;, &quot;&lt;&quot;, $mesg)); // nguoianphu - don&#039;t want to encode the alt in img tag $mesg = str_replace(&quot;STARTCODOTAG&quot;, &quot;&lt;&quot;, $mesg); return $mesg; } ```
NguoiAnPhu.com Powered by Codoforum 4.3 (https://github.com/nguoianphu/codoforums-vietnam).

I had the issue with my Vietnamese language.

You can try to un-decode the Greek characters.

https://github.com/nguoianphu/codoforums-vietnam/blob/master/sys/CODOF/Format.php

Like this

   public static function omessage($mesg) {
       // nguoianphu - don't want to encode the alt in img tag
       // $html = new \Ext\Html();

       //$imesg; no escaping required
       // $mesg = $html->filter(str_replace("
       // nguoianphu - don't want to encode the alt in img tag
       $mesg = str_replace(", "<", $mesg);
       return $mesg;
   }

Thank you.

codoforum is a great software

&gt;I had the issue with my Vietnamese language. &gt;You can try to un-decode the Greek characters. &gt;``` https://github.com/nguoianphu/codoforums-vietnam/blob/master/sys/CODOF/Format.php ``` &gt;Like this &gt;``` &gt; public static function omessage($mesg) { &gt; // nguoianphu - don&#039;t want to encode the alt in img tag &gt; // $html = new \Ext\Html(); &gt; //$imesg; no escaping required &gt; // $mesg = $html-&gt;filter(str_replace(&quot;STARTCODOTAG&quot;, &quot;&lt;&quot;, $mesg)); &gt; // nguoianphu - don&#039;t want to encode the alt in img tag &gt; $mesg = str_replace(&quot;STARTCODOTAG&quot;, &quot;&lt;&quot;, $mesg); &gt; return $mesg; &gt; } &gt;``` Thank you. codoforum is a great software
252
4
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft