Link to home
Start Free TrialLog in
Avatar of hankknight
hankknightFlag for Canada

asked on

Character encoding for .js files

Hello,

This is in the header sent by my server for all .js files:

Content-Type:·application/x-javascript(CR)(LF)

Can I encode my .js files in UTF-8 then send this header?

Content-Type:·application/x-javascript;·charset=UTF-8(CR)(LF)

Or could that  cause bugs?

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of stanscott2
stanscott2

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial