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");
1

1 Answer 1

1

You're looking for the function mb_convert_kana, most likely with the mode as (zen-kaku alphanumerics and spaces to han-kaku). "Double byte" is the wrong term, those are full-width characters.

Sign up to request clarification or add additional context in comments.

1 Comment

This is better: stackoverflow.com/questions/14776998/… Thank you for your keyword

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.