Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UTF-8 Encoding with Mootools More Form Validation (PHP) #3

Open
jaydiablo opened this issue Nov 4, 2009 · 0 comments
Open

UTF-8 Encoding with Mootools More Form Validation (PHP) #3

jaydiablo opened this issue Nov 4, 2009 · 0 comments

Comments

@jaydiablo
Copy link

When outputting a JS file that contains the mootools more form validation components, the UTF-8 encoding doesn't come down as UTF (and thus is garbled) since the charset isn't defined for the Content-Type header.

Possible fix (works for me), change this line:

header("Content-Type: application/x-javascript");

to:

header("Content-Type: application/x-javascript; charset=UTF-8");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant