on 08-25-2011 10:53 AM
Dear Sir,
I am using PHP with Crystal Report 9.2 and has problem displaying UTF-8 data from MSSQL field. It shows weird characters instead. I am very sure the data stored in database is in UTF-8 because when I ouput it into the web browser with encoding as UTF-8, it shows correctly. Currently is using ADODB recordset to pass data into CR. I tried using ODBC to connect directly to database and preview the data - same issue.
Now I wonder whether are there any settings need to be done in CR in order to display unicode correctly? From what I read, CR 9 and above should be able to support unicode.
Thanks
AL
What CR SDK are you using?
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
how do we check the CR SDK that is currently using
What CR files are you referencing in your app?
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]
If I understand you correctly, my app is using COM object "CrystalRuntime.Application" to generate the report. The report is using TTX file definition and will read the ADO recordset - then export out a PDF file by using the "ExportOptions" method and display the PDF file on a new window browser.
Thank you.
To be honest, I have no idea if TTX files supported UTF-8... I kinda doubt it. I'd check, but the only person I knwo of that may have a clue is not in until September 28...
Re. ODBC, see if adding the following option to your DSN entry in the odbc.ini file will help:
stmt = SET CHARACTER SET utf8
Also, if I remember right, MS SQL does not install UTF-8 support by default (at least at one time or another it did not...(?).
Oh - one more thing. I've attached a non CR app that I'd like you to use to see what the data it returns looks like. Please give that a try.
- Ludek
Edited by: Ludek Uher on Sep 7, 2011 10:43 AM
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.