php forum
php mysql forum
php mysql smarty
 
Topic Options
#282301 - 11/25/04 03:48 AM Japanese Encoding problems
jackmok_dup1 Offline
Lurker

Registered: 11/25/04
Posts: 1
Here is my php ini information <br /><br />I can't show the japanese automatic<br />Any body can help me????<br /><br />mbstring<br /><br />Multibyte Support enabled <br />Japanese support enabled <br />Simplified chinese support enabled <br />Traditional chinese support enabled <br />Korean support enabled <br />Russian support enabled <br />HTTP input encoding translation enabled <br />Multibyte (japanese) regex support enabled <br /><br /><br />Directive Local Value Master Value <br />mbstring.detect_order auto auto <br />mbstring.encoding_translation On On <br />mbstring.func_overload 0 0 <br />mbstring.http_input auto auto <br />mbstring.http_output SJIS SJIS <br />mbstring.internal_encoding SJIS SJIS <br />mbstring.language Japanese Japanese <br />mbstring.substitute_character no value no value

Top
#282302 - 11/25/04 09:04 PM Re: Japanese Encoding problems [Re: maximes]
Twisty Offline
Code Monkey

Registered: 09/26/03
Posts: 524
Do you mean for viewing posts in Threads? <br /> <br />If so, Threads doesn't show special characters by default because it converts the & to &amp; <br /> <br />You can comment out the lines that do this in the various scripts (addpost.php, modifypost.php). <br /> <br />There are several instances in each of the scripts I listed too. <br /> <br />Ex. <br /> <br />
Code:
// -------------------------------------- <br />// Display certain &amp; characters correctly <br />//   $Subject = str_replace("&amp;","&amp;amp;",$Subject); <br />//   $Body = str_replace("&amp;","&amp;amp;",$Body);  
<br /> <br />NOTE: Don't comment out the form variables though, leave them be... <br />
Code:
      $FormSubject = $html -&gt; form_encode($FormSubject); <br />      $FormBody    = $html -&gt; form_encode($FormBody); <br />      $FormSubject = str_replace("&amp;","&amp;amp;",$FormSubject); <br />      $FormBody = str_replace("&amp;","&amp;amp;",$FormBody);  
<br /> <br />DEMO <br />==== <br /> <br />http://www.mameworld.info/ubbthreads/sho...part=1&vc=1
_________________________
Twisty []http://www.mameworld.info/misc/nana2.gif[/]
MAMEWorld

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks