Find Jobs
Hire Freelancers

UTF Charset Help Needed

$10-30 USD

Completed
Posted about 10 years ago

$10-30 USD

Paid on delivery
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!
Project ID: 5518710

About the project

5 proposals
Remote project
Active 10 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
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 day
5.0 (1 review)
3.3
3.3
5 freelancers are bidding on average $47 USD for this job
User Avatar
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 days
4.8 (70 reviews)
5.9
5.9
User Avatar
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 day
5.0 (3 reviews)
3.0
3.0
User Avatar
A proposal has not yet been provided
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Knoxville, United States
5.0
178
Payment method verified
Member since Apr 8, 2006

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.