Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Wide-Latin bash script?

Name: Anonymous 2010-06-05 0:56

Is there any script, preferably bash or Perl, that will convert normal ASCII ("deal") into wide-width latin ("deal")?

Thanks.

Name: Anonymous 2010-06-05 1:23

function ascii_to_wwlatin ($str)
{
    $retval = '';
    foreach (str_split($str) as $chr) {
        $ord = ord($chr);
        $retval .= $ord > 32 && $ord < 127 ?
                           html_entity_decode('&#' . ($ord + 65248) . ';', ENT_NOQUOTES, 'UTF-8') :
                           chr($ord);
    }
    return $retval;
}


echo ascii_to_wwlatin('Hi, >>1. I\'m using PHP. DEAL with it!');

Hi, >>1. I'm using PHP. DEAL with it!

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List