[FX.php List] Re: Mysterious asterisks appearing in fields

Dale Bengston dbengston at preservationstudio.com
Wed Mar 7 15:37:25 MST 2007


Kevin,

Let's separate the character encoding with which an HTML page or PHP  
script is *saved* by the programmer's text editor from the Apache  
setting and/or meta tags used to *render* that page in a browser, or  
interpret user input in a form.

Encoding does matter; it is not just a label. Try this experiment on  
a site that talks to FMSA 7 or 8:

1. Put this tag at the top of a page that contains an HTML form with  
a textarea for input:
	<meta http-equiv="content-type" content="text/html;  
charset=iso-8859-1">
2. Copy some text from MS Word (Windows) and paste it in the textarea.
3. Submit the form.
4. Take a look at what you get in your corresponding FileMaker field.

Then replace the tag above with:
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">

...repeat the Word paste and see what you get.

Dale


On Mar 7, 2007, at 3:59 PM, Kevin Futter wrote:

> On 8/3/07 8:26 AM, "Chris Bisgard" <cbisgard at racc.org> wrote:
>
>> Gjermund Gusland Thorsen wrote:
>>
>>> Are all pages referring to UTF-8 by now?
>>
>> Yep. There's only two pages (input form and target script) and  
>> both are
>> on UTF-8 now.
>>
>
> Just a quick note about charset encoding for the web: simply  
> declaring that
> a particular page is UTF-8 (or any other encoding) is like taking a  
> badge
> that says 4WD and slapping it on a sedan - it's only a label. What  
> really
> matters is that the file (page) is (as the name suggests) *encoded*  
> as UTF-8
> (or whatever). This is usually something that can be set in the  
> preferences
> of the particular editor you are using.
>
> Here's a good overview:
>
> http://www.sitepoint.com/article/guide-web-character-encoding
>
> -- 
> Kevin Futter
> Webmaster, St. Bernard's College
> http://www.sbc.melb.catholic.edu.au/
>
>
>
>
> ###################################################################### 
> ###############
> This e-mail message has been scanned for Viruses and Content and  
> cleared
> by MailMarshal
> ###################################################################### 
> ###############
>
> This e-mail and any attachments may be confidential. You must not  
> disclose or use the information in this e-mail if you are not the  
> intended recipient. If you have received this e-mail in error,  
> please notify us immediately and delete the e-mail and all copies.  
> The College does not guarantee that this e-mail is virus or error  
> free.  The attached files are provided and may only be used on the  
> basis that the user assumes all responsibility for any loss, damage  
> or consequence resulting directly or indirectly from the use of the  
> attached files, whether caused by the negligence of the sender or  
> not. The content and opinions in this e-mail are not necessarily  
> those of the College.
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list



More information about the FX.php_List mailing list