PDA

View Full Version : PHP Flash / Php charset problem?



sekasi
June 2nd, 2008, 03:20 PM
Here's the dilemma;

Flash pseudo code;
inputfield.restrict = "^\"\'";

US keyboard layout: All chars work apart from " and ';
UK keyboard layout: All chars work apart from @ and ';
(Because " is at the position of @ on UK keyboard?)

Now, standalone (url/file.swf) it works the correct way both US and UK. Inside a index.php, the UK keyboard blocks @ instead of ";

Why is this? It's charset utf-8, properly validating XHTML 1.1 ? Any ideas? Here's the header of the php file;


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />


Thanks. No idea whats going on..

ahmednuaman
June 3rd, 2008, 04:46 AM
What happens if you use this:
<meta http-equiv="Content-Type" content="application/x-shockwave-flash; charset=UTF-8" />