Find Jobs
Hire Freelancers

UTF Charset Help Needed

$10-30 USD

Ukończony
Opublikowano około 10 lat temu

$10-30 USD

Płatne przy odbiorze
Hello all, We have a problem with German characters in several javascript and php pages. Unfortunately we cannot create a global charset option because it will break the database returned text. Therefore we have to manually enter the HTML code for the text. For example ä would need to be entered as ä. This is fine on normal HTML pages and TPL pages, but it does not work with some of our PHP and javascript pages. For example in php file (see the $_erroMsg line) $redirect_location = $site_url."[login to view URL]"; if($mail_status == true) { $_erroMsg = "Vielen Dank für Ihre Anfrage. Wir bemühen uns, innerhalb von 2 Arbeitstagen zu antworten."; //added by Kb as per requirement as on 20 Jul 2012 $ins_talent = "insert into talent_submission (vName, vEmail, eGender, vCity, vState, vCountry, vPhone, lAboutMe, dEntryDate) values ('".$vName."', '".$vEmail."', '".$_POST['eGender']."', '".$vCity."', '".$vState."', '".$vCountry."', '".$vPhone."', '".addslashes($lMessage)."', '".date_getSystemDateTimeNew()."')"; $rs_talent = $sqlObj->insert($ins_talent); In javascript file: else if([login to view URL]!=[login to view URL]) { alert("Die PasswÄrter stimmen nicht Äberein"); [login to view URL](); return false; } This displays a pop-up but the HTML in the text appears exactly as it is written instead of showing the ä character. Therefore we need help with charset for internal error and alert messages in PHP and javascript. I just need to know how to edit the javascript files and php files to make this work. Thanks!
Identyfikator projektu: 5518710

Informację o projekcie

5 ofert
Zdalny projekt
Aktywny 10 lat temu

Szukasz sposobu na zarobienie pieniędzy?

Korzyści ze składania ofert na Freelancer.com

Ustal budżet i ramy czasowe
Otrzymuj wynagrodzenie za swoją pracę
Przedstaw swoją propozycję
Rejestracja i składanie ofert jest bezpłatne
Przyznano:
Awatar Użytkownika
Hello, I'm a Czech freelancer living in Sweden, so in both countries we work a lot with special characters. More exactly German and Swedish has almost same character set, so I can definitely help. But before that: 1. Unfortunately we cannot create a global charset option - so what is your default character set on the site? If you work with UTF-8, there is no problem for german, no matter which kind of utf-8 you use for DB, so there is NO need to be scared from chars like öäå. If you have already all texts using the entities like & # 228;, you have to manually decode them prior using the string in javascript. If you use it in HTML, you can simply use innerHTML = "Vielen Dank für Ihre Anfrage. Wir bemühen uns, innerhalb von 2 Arbeitstagen zu antworten." it will be solved/decoded automatically and you can then take it back for alert. If you have possibility to process the text in PHP before using in Javascript, use simply htmlentity_decode() on the error message. It works well with different encodings. If you cannot use PHP and cannot put the string into innerHTML, then you have to create javascript based method for it, something like: [login to view URL] That's about it:) Let me know if it helps or if you need more info. Regards, Luk
$30 USD w 1 dzień
5,0 (1 opinia)
3,3
3,3
5 freelancerzy składają oferty o średniej wysokości $47 USD dla tej pracy
Awatar Użytkownika
We have to be very careful of your project and we are very interesting. We promise to work hard to finish on time for assigned work. Hope to get feedback from you soon so that we can begin to discuss more details about the project and we are ready. Best regards!
$100 USD w 3 dni
4,8 (70 opinii)
5,9
5,9
Awatar Użytkownika
hi I read your proposal carefully, and have a confident to do it. As you know I am a new freelancer in this site. frankly I just hired in this company. But I had 3years web site development experience . that's why our manager hired me. I know you are in doubt in my ability. I will get right start if you award me. But you can see my read ability during in progress. I hope it would be our first step for long term relationship.' So I will work for you at lower price. Looking forward hearing good news from you. Thanks for hearing me out. Regards. xian
$54 USD w 1 dzień
5,0 (3 opinii)
3,0
3,0
Awatar Użytkownika
A proposal has not yet been provided
$25 USD w 1 dzień
0,0 (0 opinii)
0,0
0,0

O kliencie

Flaga UNITED STATES
Knoxville, United States
5,0
178
Zweryfikowana metoda płatności
Członek od kwi 8, 2006

Weryfikacja Klienta

Dziękujemy! Przesłaliśmy Ci e-mailem link do odebrania darmowego bonusu.
Coś poszło nie tak podczas wysyłania wiadomości e-mail. Proszę spróbować ponownie.
Zarejestrowani Użytkownicy Całkowita Liczba Opublikowanych Projektów
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Wczytywanie podglądu
Udzielono pozwolenia na Geolokalizację.
Twoja sesja logowania wygasła i zostałeś wylogowany. Proszę, zalogować się ponownie.