I have a problem with the cyrillic fonts.
The user inserts some data in a MS SQL database and the data are well saved in the database in a nvarchar
column. I mean that I can see the cyrillic fonts using a sql client like heideSQL
in my case.
When I use echo with php
or I try to print out a pdf document with tFPDF
I see just ????????.
On the web browser I see cyrillic fonts without any problems.
Any suggestions?
here the code:
$sql="select text from table where user='xxxxxxx'";
$result=sqlsrv_query($db_conn, $sql);
while( $row = sqlsrv_fetch_array( $result, SQLSRV_FETCH_ASSOC) ) {
echo $row['text'].'
';
}
and this is the result:
теÑÑ‚ 4 теÑÑ‚ 4 теÑÑ‚ 4 теÑÑ‚ 4 теÑÑ‚ 4
Thank you in advance
cyrillic fonts
supported by tFPDF? – Fakhruddin Ujjainwalaecho
in php try usemb_convert_encoding
for that cell. Trywindows-1251
toUTF-8
for example. – gofr1