Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Problems with äöü in JQUERY

Posted on 2012-03-27
2
Medium Priority
?
292 Views
Last Modified: 2012-03-28
Hi Experts

The following code ist haow to set focus on a input (text) an set cursor psition behind the text.

	$('input[name=test]').focus();
	var text_val = $('input[name=test]').val();
	$('input[name=test]').val('');
	$('input[name=test]').val(text_val);

Open in new window


It works very well (in firefox) ...

two problems

1. after input a german sign like (äöü) the value of the input like (¿)
2. in ie it doesn't work

inputflied is defined first, jquery at the end of my site ..
i have tested by loading (css and js) with utf-8 and iso-8859-1

metatags are ...

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Type" content="application/x-javascript; charset=UTF-8" />

also testet with iso-8859-1

i hope anyone can help

thanx

talki
0
Comment
Question by:Klaus Talkenberger
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 11

Accepted Solution

by:
Chris Sandrini earned 2000 total points
ID: 37775573
set the following content type
contentType: "application/x-www-form-urlencoded; charset=UTF-8"
0
 

Author Comment

by:Klaus Talkenberger
ID: 37775828
thank you for youre answer

i have already solved this problem ...
you ar on the right way ;-)

the input with the name test is loaded by .load()  with a php-script ...

i have to set the header at top of this script ...

	header('Content-Type: text/html; charset=ISO-8859-1');

Open in new window


now is works very well ...

thanx

talki
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question