Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
The FireBoard forum component development is still going on. In order to get better, FireBoard will be moved from the Best of Joomla website.
During this transition period, the forum in Best of Joomla will be closed to new posts.
Welcome, Guest
Please Login or Register.    Lost Password?
FireBoard Manual Latest release discussions Download FireBoard
Broken preview for non latin-1 languages (1 viewing) (1) Guest
TOPIC: Broken preview for non latin-1 languages
#37254
Broken preview for non latin-1 languages 1 Year ago  
See bellow:
kauselot (User)
Junior Boarder
Posts: 47
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Birthdate: 1974-10-14
Logged Logged
 
Last Edit: 2008/01/04 15:21 By kauselot. Reason: broken code highlighter
 
 
#37256
Re:Broken preview for non latin-1 languages 1 Year ago  
This forum ate my changes to the code.. posting as attachment.

Little changed solution from what I found here:http://freedom-ru.net/forum/1637.html

Changed

header("Content-Type: text/html; "._ISO);
//echo utf8_encode($msgbody);
echo $msgbody;

to

header("Content-Type: text/html; charset=utf-8";
echo mb_convert_encoding($msgbody, "UTF-8", $ch_sfb);

Changed file attached.
File Attachment:
File Name: fireboard-c803eb64a275ee388222535853c75c41.zip
File Size: 9163
kauselot (User)
Junior Boarder
Posts: 47
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Birthdate: 1974-10-14
Logged Logged
 
 
#37262
Re:Broken preview for non latin-1 languages 1 Year ago  
thx, small code.
but header("Content-Type: text/html; "._ISO);
is valid
_ISO - it's defined constant from lang file
taras (User)
Fresh Boarder
Posts: 13
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/01/04 15:56 By taras.
 
Automatic Filter Message : Please follow the forum rules for forum signatures...Thanks
 
 
#37279
Re:Broken preview for non latin-1 languages 1 Year ago  
In my experience some Ajax applications break if encoding isn't utf-8. Don't know if this is the case here - just to be shure I added converion to utf-8.
kauselot (User)
Junior Boarder
Posts: 47
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Birthdate: 1974-10-14
Logged Logged
 
 
#37280
Re:Broken preview for non latin-1 languages 1 Year ago  
In my experience some Ajax applications break if encoding isn't utf-8. Don't know if this is the case here - just to be shure I added converion to utf-8.
kauselot (User)
Junior Boarder
Posts: 47
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Birthdate: 1974-10-14
Logged Logged
 
 
Go to top