0

I have a string with double byte, now I want convert to 1 byte.

Example:

$input = "2012/12/31";

I want to output: 2012/12/31

For C#: How to Convert Double Byte String to Single Byte String?


Found the anwser from:

how to transform japanese english character to normal english character?

However mb_convert_kana in my pc not run

mb_convert_kana("2012/12/31", "rnaskhc");
4

1 回答 1

1

您正在寻找功能mb_convert_kana,最有可能使用模式as(zen-kaku 字母数字和空格到 han-kaku)。“双字节”是错误的术语,它们是全角字符。

于 2014-02-07T08:32:49.463 回答