# Flash / Php charset problem?

**URL:** <https://forum.kirupa.com/t/flash-php-charset-problem/262030>\
**Category:** programming\
**Created:** [June 2, 2008, 7:20pm UTC](https://forum.kirupa.com/t/flash-php-charset-problem/262030 "2008-06-02T19:20:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sekasi](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@sekasi](https://forum.kirupa.com/u/sekasi)\
**Post date:** [June 2, 2008, 7:20pm UTC](https://forum.kirupa.com/t/flash-php-charset-problem/262030/1 "2008-06-02T19:20:50Z")

</div>

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;

```php

<!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…
