?
Solved

Problems with äöü in JQUERY

Posted on 2012-03-27
2
Medium Priority
?
291 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

WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

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.
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

752 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