Jump to content

New gibberish characters


grejon04

Recommended Posts

 

I know many of us have dealt with the 'curly text' resultant from cut/pasting from Microsoft Word. The new version of Office seems to be in full swing now, and I'm starting to see a new strain of 'super' curly text, usually about 10-12 characters long per character...

 

So far these things have eluded all of my string replacing, conversion, and cleaning functions. Has anyone else found a way to clean them up effectively?

 

 

Link to comment
https://forums.phpfreaks.com/topic/103725-new-gibberish-characters/
Share on other sites

How are these coming across (being encoded)? For example:

 

<pre>
<?php
echo $data = '“testing”';
echo '<table border="1">';
foreach (str_split($data) as $char) {
	echo "<tr><td>$char</td><td>";
	echo dechex(ord($char));
	echo '</td></tr>';
}
echo '</table>';

?>
</pre>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.