[PHP-users 15678]Re: php3で文字化けしてしまいます
s_momo2
s_momo2 @ hotmail.com
2003年 6月 4日 (水) 14:42:07 JST
s_momo2$B$G$9!#(B
hirose$B$5$s!">.;3$5$s!"2<:4J4$5$s!"$"$j$,$H$&$4$6$$$^$9!#(B
16$B?J$G%@%s%W$N0UL#$,!"0J2<$N$h$&$J$3$H$G$"$C$F$$$k$+!"(B
$B<+?.$J$$$N$G$9$,!"(B2$B?J?t$+$i(B16$B?J?t$KJQ49$9$k4X?t$r;H$C$F$d$C$F$_$^$7$?!#(B
$B0J2<%=!<%9$G$9(B
------------------------------------------------------
print "$BJ8;z2=$1%F%9%H"*(B".$db->mArray["NAME"]."<br>";
print bin2hex($db->mArray["NAME"])."<br>";
var_dump($db->mArray["NAME"]);
print "<br>";
$tmp_area_name2 =Trim(i18n_convert($db->mArray["NAME"],"EUC-JP","SJIS"));
$tmp_area_name3 =Trim(i18n_convert($db->mArray["NAME"],"EUC-JP","EUC-JP"));
$tmp_area_name4 =Trim(i18n_convert($db->mArray["NAME"],"SJIS","EUC-JP"));
print "$BJ8;z2=$1%F%9%H(B2$B"*(B".$tmp_area_name2."<br>";
print "EUC-JP,SJIS$B"*(B".bin2hex($tmp_area_name2)."<br>";
print "$BJ8;z2=$1%F%9%H(B3$B"*(B".$tmp_area_name3."<br>";
print "EUC-JP,EUC-JP$B"*(B".bin2hex($tmp_area_name3)."<br>";
print "$BJ8;z2=$1%F%9%H(B4$B"*(B".$tmp_area_name4."<br>";
print "SJIS,EUC-JP$B"*(B".bin2hex($tmp_area_name4)."<br>";
------------------------------------------------------
$B0J2<7k2L$G$9(B
------------------------------------------------------
$B4D6-(BA
$BJ8;z2=$1%F%9%H"*%F%9%H%(%j%"(B
8365835883678347838a8341
string(12) "$B%F%9%H%(%j%"(B"
$BJ8;z2=$1%F%9%H(B2$B"*%F%9%H%(%j%"(B
EUC-JP,SJIS$B"*(Ba5c6a5b9a5c8a5a8a5eaa5a2
$BJ8;z2=$1%F%9%H(B3$B"*%F%9%H%(%j%"(B
EUC-JP,EUC-JP$B"*(B8365835883678347838a8341
$BJ8;z2=$1%F%9%H(B4$B"*(Br$B!&(Bwr$B-S(Bfr)r`
SJIS,EUC-JP$B"*(B728572777287726672297260
$B4D6-(BB
$BJ8;z2=$1%F%9%H"*%F%9%H%(%j%"(B
a5c6a5b9a5c8a5a8a5eaa5a2
string(12) "$B%F%9%H%(%j%"(B"
$BJ8;z2=$1%F%9%H(B2$B"*!&%K!&%1!&%M!&%#!&!&!V(B
EUC-JP,SJIS$B"*(B8ea58ec68ea58eb98ea58ec88ea58ea88ea5f4a78ea2
$BJ8;z2=$1%F%9%H(B3$B"*%F%9%H%(%j%"(B
EUC-JP,EUC-JP$B"*(Ba5c6a5b9a5c8a5a8a5eaa5a2
$BJ8;z2=$1%F%9%H(B4$B"*%F%9%H%(%j%"(B
SJIS,EUC-JP$B"*(B8365835883678347838a8341
------------------------------------------------------
$B$9$k$H!"(BDB$B$+$i$H$C$F$-$?D>8e$N(B
print bin2hex($db->mArray["NAME"])."<br>";
$B$N7k2L$,0c$$$^$7$?!#(B
8365835883678347838a8341
a5c6a5b9a5c8a5a8a5eaa5a2
> $B$&!<$s!"$d$C$Q$j4D6-(BA$B$H(BB$B$G%/%i%$%"%s%H$N @ _Dj$,0[$J$C$F$$$k(B
> $B$h$&$K8+$($^$9!#(B
>
> [PHP-users 15591]$B$G$b=q$-$^$7$?$,!"<ALd$NEj9F<T$NJ}$O!"(B
> $B4D6-JQ?t(BLANG$B$O3NG'$5$l$?$N$G$7$g$&$+!)(B
>
$B%/%i%$%"%s%H$H$$$&$N$O!"(BDB2$B$K$D$J$.$K9T$/%f!<%6$G$9$h$M!#(B
db2inst1$B$N4D6-JQ?t$O!"(B
ja_JP.eucJP
$B$G$9!#(B
$B$3$3$G0c$$$,$"$j$^$7$?!#(B
$B4D6-(BA$B$G$O!"(B
httpsdctl$B$G!"(B
(B. /home/db2inst1/sqllib/db2profile
LANG=ja_JP.ujis
export LANG
$B$H$7$F$$$^$9!#(B
$B4D6-(BB$B$K$O!"(B
(B. /home/db2inst1/sqllib/db2profile
$B$7$+$"$j$^$;$s$G$7$?!#(B
LANG=ja_JP.ujis
export LANG
$B$rDI2C$7$F!"(Bapache$B$r(Bstop$B$7$F(Bstart$B$7$^$7$?$,!"(B
$B7k2L$OJQ$o$j$^$;$s$G$7$?!#(B
$B$A$g$C$HD9$/$J$C$F$7$^$$!"?=$7Lu$"$j$^$;$s!#(B
$B$b$&>/$7D4::$7$F$_$^$9!#(B
$B$"$j$,$H$&$4$6$$$^$7$?!#(B
PHP-users メーリングリストの案内