I am working on a laravel web application and in the word instantaneous, the letters tantan are being replaced by an older looking emoji. Capitalizing any of the six letters breaks the emoji. This web app is running on laravel 8.4 and this problem could not be replicated on two other apps running laravel 5.8. For now I’m just using
Tag: character-encoding
Character encoding issue with PHP/MySQL
I have a web application I have been developing locally on my computer, I have recently launched it on my web server with the exact same settings for MySQL, but for some reason I am encountering a character encoding issue where “smart quotes” (’) are being displayed as black triangles with question marks (�), but only on the server. This
PHP reversing a byte and printing it
I’m working with strings in PHP and the character ‘a’ in binary looks like this: 01100001. What I want to do is reverse this, which then becomes 10000110 and convert back to its text representation, but everytime I try it either gives me a ? or a blank square indicating a non-printable or invalid character. I tried online ASCII/UNICODE binary
encoding language fails
PHP code below fails to retrieve correct characters when used : echo $html = file_get_contents(“http://www.tsetmc.com/tsev2/data/instinfofast.aspx?i=65883838195688438&c=34+”); the result is : …
Encoding issue with PHP while writing in a .csv file
I’m working with a php array which contains some values parsed from a previous scraping process (using Simple HTML DOM Parser). I can normally print / echo the values of this array, which contains special chars é,à,è, etc. BUT, the problem is the following : When I’m using fwrite to save values in a .csv file, some characters are not
How to convert String with “ (ISO-8859-1) characters to normal (UTF-8)characters?
i have lot a raw html string in database. all the text have these weird characters. how …
Tcpdf issue with display hindi language font
I am using Tcpdf PHP library to generate PDF. I got issue with display in Hindi language fonts in generated PDF. I have all things like fonts characters standards etc.. properly but my generated PDF contains ?????? instead of Hindi fonts. please have a look I have included my code here. please help to solve my issue. Answer Try this:
Encoding for SMS messages
I’m currently building an application which uses Nexmo to send SMS messages to users. But I’m experiencing some problems with the encoding of messages. Probably worth metioning; I’m using the prawnsalad/Nexmo-PHP-lib library to connect with their API. A simple text messages of 160 characters is divided into 3 separate messages. According to the Nexmo support, this is caused by the
PHP Convert Windows-1251 to UTF 8
I have a small html code and I need to convert it to UTF-8. I use this iconv(“windows-1251”, “utf-8”, $html); All text converts correctly, but if text for example in tag …, then …
PHP Mail header for emails with special characters in the subject or message
My code: $to = ‘example@example.com’; $subject = $_REQUEST[‘subject’] ; $message = $_REQUEST[‘message’] ; $header = “From: noreply@example.comrn”; $header.= “MIME-Version: 1.0rn”; $header.=…