[PHP-users 21543]Re: 内部エンコードUTF8のファイルからUTF-16のCSVファイルを読み込む

愛猫 lovecat @ yk.rim.or.jp
2004年 5月 6日 (木) 13:58:54 JST


$B0&G-$G$9"v(B

aiko$B$5$s$O=q$-$^$7$?"v(B
$B!J!&!&!&N,!&!&!&!K(B
>//// aaa.txt(UTF-16) /////
>//// aaa.txt(UTF-16) $B%P%$%J%j(B /////
>54,00,45,00,53,00,54,00,31,00,2D,00,31,00,2C,00,
>54,00,45,00,53,00,54,00,31,00,2D,00,32,00,2C,00,
>54,00,45,00,53,00,54,00,31,00,2D,00,33,00,0A,00,
>54,00,45,00,53,00,54,00,32,00,2D,00,31,00,2C,00,
>54,00,45,00,53,00,54,00,32,00,2D,00,32,00,2C,00,
>54,00,45,00,53,00,54,00,32,00,2D,00,33,00,0A,00,
>54,00,45,00,53,00,54,00,33,00,2D,00,31,00,2C,00,
>54,00,45,00,53,00,54,00,33,00,2D,00,32,00,2C,00,
>54,00,45,00,53,00,54,00,33,00,2D,00,33,00,0A,00,
>
>// $BI=<(7k2L(B( $B9T?t$O$-$A$s$HG'<1$7$F$$$k(B )
>[0] ??ú$BÖ(B??????ú$BÖ(B??????ú$BÖ(B???    // $B"+$3$3$,2=$1$F$$$k!#(B
>
>[1] TEST2-1TEST2-2TEST2-3 
>
>[2] TEST3-1TEST3-2TEST3-3 
>
>[3]

$BBh0l9T$@$12=$1$F$k$_$?$$$J$N$G!"$b$7$+$7$?$i!#!#!#(B
$B$^$:!"(BBOM$B$,$J$$$C$F$3$H$O!"(BRFC2781$B$G$O(BUTF-16BE$B$H$9$k(B
$B$3$H$K$J$C$F$$$^$9$N$G!">e5-%G!<%?(B(UTF-16LE)$B$OJ8;zNs(B
$B$NF,$G$?$V$s2x$7$/(B($BFf(B)$B$J$C$F$k$H;W$$$^$9!#(B
$B!c$C$FL$3NG'$G$9!#!#G0$N$?$a!#!#!#(B

$B$J$N$G!"(B

1. BOM(LE)$B$rF,$KIU2C$9$k(B
2. aaa.txt$B$r(BBE$B$G$J$/$F(BLE$B$K$9$k(B

$B$NN>J}$d$C$F$_$F!"$I$C$A$bI=<($G$-$?$i!V(BRFC2781$BDL$j!W(B
$B$C$F$3$H$K$J$k$H;W$$$^$9!#(B


PHP-users メーリングリストの案内