Solved

Problems with äöü in JQUERY

Posted on 2012-03-27
2
287 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:Talki
2 Comments
 
LVL 11

Accepted Solution

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

Author Comment

by:Talki
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

OverviewThis article demonstrates a simple search form using AJAX. The purpose of the article is to demonstrate how to use the same code to render a page and javascript (JQuery) and AJAX to make subsequent calls to refine the results. The princip…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

820 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