I have a table in mysql that stores currency symbols like € and £ . I get the following error while displaying the symbol from database in a mpdf document - HTML contains invalid UTF-8 character(s).
When these symbols are hardcoded in php,mpdf does not throw any error.The currency symbol column has utf8_general_ci collation.
Thanks ,
Simmy
I did this for alternate chars:
<?php
include('class/mpdf.php');
$mpdf=new mPDF();
$mpdf->charset_in='windows-1252';
Related
I am trying to convert unicode to RUSSIAN CURRENCY (руб) symbol in teradata. Please find below query I have written but it is not converting unicode to symbol sel translate('U+0431' UNICODE_TO_LATIN). I am getting output as unicode which has written in sql query U+0431 but not desired symbol
My Oracle DB is in ALT16UTF16 charcter set.I need to generetae unicode text file which should be imported in another DB in AL32UTF8 encoding. I use for this a PL/sql code which calls the DBMS_XSLPROCESSOR.CLOB2FILE procedure.
In my code process:
1st ,I use an NCLOB to store the unicode lines which contains a chinese characters.
then I call the procedure as: DBMS_XSLPROCESSOR.CLOB2FILE(v_file, DIRE, fileName,873)
where v_file is the NCLOB variable which contains the file and 873 is the Oracle characteset of AL32UTF8
However when I check in the text file I find ¿¿ instead of the chinese caracters, could you help to resolve this or if you can suggest another procedure other than DBMS_XSLPROCESSOR.CLOB2FILE which allow writing a large file with the chinese caracters which is extracted from non unicode DB ?
Many Thanks
I have an ETL that creates a plain text that later will be loaded into Teradata, in the source data there is a column UTF8 enconded that has all kind of characters including non printable, I properly write the file but i get Error Code 6706: The string contains an untranslatable character.
This is the destiny column
column VARCHAR(300) CHARACTER SET LATIN NOT CASESPECIFIC
I can load characters like this é but not characters like this ’
How can I properly write the file, and validate before sending the data, I don't have access to the data base just know that they get the error Code 6706.
Thanks in advance
Make column as unicode...
column VARCHAR(300) CHARACTER SET unicode NOT CASESPECIFIC.
I'm using a WordPress plugin called Vertical News Scroller.
It's working fine in English but when I write in Hebrew I get question marks.
I have no such problem with other plugins or genrally in my Hebrew locallized site.
This plugin has a table called wp_scroll_news.
In order to find what is the character set for this table I ran the following query:
SELECT CCSA.character_set_name
FROM information_schema.TABLES T, information_schema.COLLATION_CHARACTER_SET_APPLICABILITY CCSA
WHERE CCSA.collation_name = T.table_collation
AND T.table_name = "wp_scroll_news"
and I got:
latin1
latin1
latin1
So I used this query:
ALTER TABLE wp_scroll_news CONVERT TO CHARACTER SET utf8;
Then I checked again and this time I got:
latin1
latin1
UTF8
After restarting the (WAMP) server and writing new news I still get question marks.
I guess the two remaining latin1 need to be changed as well to UTF8.
How can I do that?
I am generating word report using asp.net.
I am exporting data from the database and replacing it with the placeholders in the word document.
When i am retrieving the data from the database the string contains the "block character" (□) carriage returns which i want to eliminate? I have tried replacing it with chr(11), chr(13) but have not got any success.
for example i have the following text
abc
xyz
then the current output i am getting is as follows:
abc
□ xyz
instead of
abc
xyz
on word report.
Can you please provide me with a solution for the above issue?
The enter can also be 0x0D (13) and following with 0x0A (10)
So replace also the chr(10) (together with your current replace of the chr(11) and chr(13)).