Save this page as accent.mv =========================================================== The section bounded by the HTML/BODY tags below is provided to allow this function to run as a stand-alone script for testing purposes. It is also useful as an example of the correct way to reference the function. Do not include that section in your Miva script! =========================================================== Accent =========================================================== This function HTML encodes and decodes the eighty most commonly used non-english accented characters, accents marks, currency signs, puncuation marks and ordinals from the ISO-8859-1 character set including the lower case y, umlaut (character #255) which will corrupt .dat files and DBIII indexes if left unchanged. Parameters: "ltxt" is the text to be converted. "lact" is the action to use to convert the text. 'encode' converts characters to their HTML equivalent. 'decode' converts the HTML equivalent to characters. On my 233mhz wintel machine the function takes 1.5 seconds to parse 1k on the 'chr' and 'htm' global vars (above) when they are scaled up to 10k per var. DO NOT INTRODUCE CARRIAGE RETURNS OR OTHER CHARACTERS INTO THE "VALUE=" ATTRIBUTE OF THE L.LIST ASSIGNMENT. ===========================================================