[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] ASCII and HTML (was New User's MacPerl Questions)



>A good way to discover HTML entity codes is to type high-ASCII charac=
>ters (such as bullets or curly quotes) into a FileMaker Pro field, an=
>d then export that data as type "HTML Table". Examine the exported pl=
>ain-text file to see the codes, which always begin with an ampersand =
>and end in a semicolon.

Here's a (really) simple script I use:

print "<HTML><BODY BGCOLOR=FFFFFF><P><FONT SIZE=+3>\n";
for ($i = 0; $i < 256; $i++)  {
  print "<BR><FONT COLOR=AAAAAA>$i - </FONT>&#$i;\n";
  }
print "</FONT></BODY></HTML>\n";

It just prints out the html code ala - &#0; to &#255;
view the output in your browser (or run as a cgi!)


Pete


***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch