-
-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS [ UTF-8 ] problem #7
Comments
Hi @h-rafiee What's the text you used? Maybe you used some special characters... Can you paste your whole code here? |
i use Persian Keyboard. |
Okay, can you show your code here so I can try to reproduce your issue on my end. |
Hi again @h-rafiee |
OK :) $oQRC = new QRCode;
$oQRC->fullName($this->setting[$this->session->_gdb]['title']) // Add Full Name
->gender('M') // Add Gender
->url('http://google.com') // Add URL Website
->address($this->setting[$this->session->_gdb]['address'])
->note(mb_word_wrap($this->setting[$this->session->_gdb]['description'],150,'...'))
->photo(base_url($this->setting[$this->session->_gdb]['logo_other']));
$params = json_decode($this->setting[$this->session->_gdb]['params']);
foreach (explode("-",$params->phone) as $phone){
$oQRC->workPhone($phone);
}
$oQRC->finish();
$data['oQRC']=$oQRC; that will such as : $oQRC = new QRCode;
$oQRC->fullName(" حسین رفیعی ") // Add Full Name
->gender('M') // Add Gender
->url('http://google.com') // Add URL Website
->address(" ایران ")
->note(" یک برنامه نویس ")
->photo("http://mysite.com/images/aasdasd.jpg");
$oQRC->workPhone(" +989388916366 ");
$oQRC->finish();
$data['oQRC']=$oQRC; <img src="<?=$oQRC->get(200)?>" > |
@h-rafiee This library uses Google chart API, and it encodes to UTF-8 by default https://developers.google.com/chart/infographics/docs/qr_codes#syntax Otherwise, you can change the encoding to another one by mentioning the parameter Hope this will help 🤞 |
Hello, I have the same problem. On android works perfect but on IOS devices doesn't work. The problem is in the constructor, there is VERSION 4.0 , but IOS devices doesn't support this Version. When I change Version to 3.0 everything works perfect. Therefore, I think version should be 3.0 for perfect working on both devices. |
Hello. Using php function utf8_encode in function finish() helped.
|
I am sorry ... just realized it didn't work on iOS. |
Hello my friend
its work as beautiful in Android > 5.0
but it not work in iOS its work but sames have problem with Unicode ...
The text was updated successfully, but these errors were encountered: