Find Jobs
Hire Freelancers

UTF Charset Help Needed

$10-30 USD

Completato
Pubblicato circa 10 anni fa

$10-30 USD

Pagato al completamento
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!
Rif. progetto: 5518710

Info sul progetto

5 proposte
Progetto a distanza
Attivo 10 anni fa

Hai voglia di guadagnare un po'?

I vantaggi delle offerte su Freelancer

Imposta il tuo budget e le scadenze
Fatti pagare per il lavoro svolto
Delinea la tua proposta
La registrazione e le offerte sui lavori sono gratuite
Assegnato a:
Avatar dell'utente
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 in 1 giorno
5,0 (1 valutazione)
3,3
3,3
5 freelance hanno fatto un'offerta media di $47 USD
Avatar dell'utente
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 in 3 giorni
4,8 (70 valutazioni)
5,9
5,9
Avatar dell'utente
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 in 1 giorno
5,0 (3 valutazioni)
3,0
3,0
Avatar dell'utente
A proposal has not yet been provided
$25 USD in 1 giorno
0,0 (0 valutazioni)
0,0
0,0

Info sul cliente

Bandiera: UNITED STATES
Knoxville, United States
5,0
178
Metodo di pagamento verificato
Membro dal apr 8, 2006

Verifica del cliente

Grazie! Ti abbiamo inviato tramite email il link per richiedere il tuo bonus gratuito.
Non è stato possibile inviarti l'email. Riprova per piacere.
di utenti registrati di lavori pubblicati
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Caricamento anteprima
Autorizzazione per la geolocalizzazione concessa.
La tua sessione è scaduta ed è stato effettuato il log out. Accedi nuovamente per piacere.