Find Jobs
Hire Freelancers

need to fix a bug. Invalid utf8 character string: '\xF3'

$10-30 USD

Completed
Posted over 2 years ago

$10-30 USD

Paid on delivery
Hi i need to fix a bug here. i need someone to help me fix it so i can continue. $requestId = base64_decode($_GET['request_id']); i get this error code: need to fix a bug. Invalid utf8 character string: '\xF3' this is the full script: include "[login to view URL]"; $requestId = base64_decode($_GET['request_id']); $sql = mysql_query("SELECT id,images FROM checklists WHERE id = $requestId ORDER BY id DESC") or die(mysql_error()); $results = mysql_fetch_array($sql); // count the output amount $imagesNames = $results['images']; if(!empty($_FILES)){ $imagesString = ''; $target_dir = "upload/"; $i = 0; $u = 0; $imgArr = array(); foreach($_FILES['fileToUpload']['name'] as $file){ $fileName = time().basename($file); $target_file = $target_dir . $fileName; $imagesNames .= '&&&'.$fileName; $imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION)); if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" && $imageFileType != "gif" ) { }else{ move_uploaded_file($_FILES['fileToUpload']['tmp_name'][$i], $target_file); $imgArr [] = $fileName; } $i++; } } if($imagesNames != ''){ $result = mysql_query("UPDATE checklists SET images='$imagesNames' WHERE id = $requestId" ) or die(mysql_error()); $submitted = 1; }
Project ID: 31642149

About the project

6 proposals
Remote project
Active 3 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
I have more than 5 years of experience working with PHP, MySQL, API, HTML, Javascript, Node Js, Vue Js, Css, Git, C#, SQL Server, Devexpress, and integrating online payment gateways, Paypal, Payer, PerfectMoney. I can start work right now
$20 USD in 1 day
5.0 (4 reviews)
2.3
2.3
6 freelancers are bidding on average $23 USD for this job
User Avatar
Hi there. I've just read your requirement and I think I understood it clearly. I'm a Fullstack expert and I can fix the bug perfectly. If you chat with me, you'll know I can finish your project perfectly. Looking forward to your reply. Thank you.
$20 USD in 1 day
5.0 (5 reviews)
3.9
3.9
User Avatar
hi Seems like a encoding issue. please also provide stack trace of the error for better debugging. regards, manoj
$20 USD in 1 day
5.0 (4 reviews)
4.1
4.1
User Avatar
Hi! I can help you fix the bug you provided here in this post. I have an experience in bug fixing for six years in a lot of programming languages, including PHP and SQL. I also know character encoding types such as ASCII and UTF-8, therefore I can deal with this character encoding problem in PHP and SQL. Please send me a message to discuss this further if you wish to award me this project. Thanks! Regards, Benedict
$25 USD in 7 days
5.0 (1 review)
0.8
0.8

About the client

Flag of CURACAO
Curacao, Curacao
5.0
13
Payment method verified
Member since Nov 9, 2018

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.