S
S
sayonara12017-04-19 04:35:04
Programming
sayonara1, 2017-04-19 04:35:04

Punycode-program for offline character conversion?

Does anyone have an offline program to convert Chinese characters to punycode?
I found one, but it only converts Cyrillic (Russian text). And instead of hieroglyphs, question marks. Perhaps you can correct its encoding?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Philipp, 2017-04-19
@zoonman

Perhaps your problem is with the fonts and not with the program.
Try this solution here .
In PHP, there is a solution in the intl extension:

<?php                

echo idn_to_ascii('收发板散件 图片是焊好的');
// xn-- -116a68m8xdk2dl5xbjal0dj4ef79au9cdpr

echo idn_to_utf8('xn-- -116a68m8xdk2dl5xbjal0dj4ef79au9cdpr');
// 收发板散件 图片是焊好的

For Linux there is a solution www.gnu.org/software/libidn/manual/html_node/Invok...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question