Cyrillic characters from MySQL not displaying correctly

I have a flash file that has a dynamic text link which is taking the data from a MySQL database.  Everything is fine when it is receiving standard characters, but when I try to use Cyrillic characters I just get ???? instead.
I've tried setting the collation to everything from windows 1251 to UTF8 (and variants).  I've also tried setting the text link to fonts ranging from Arial to Arial CYR, Verdana etc and even embedding the char sets into the file.
Nothing seems to be working - does anyone have any ideas about what I can do?
Thanks!!

.oO(Daniel Sofer)
>I have a static site in Japanese that is working fine in
Dreamweaver. I'm
>trying to add a database connection with php/mysql, but
the connection between
>my page and the database is garbling the text (moji bake)
in both directions.
You also have to define the connection character set, so the
data will
be transfered correctly.
10.4. Connection Character Sets and Collations
http://dev.mysql.com/doc/refman/5.0/en/charset-connection.html
I do this by sending a
SET NAMES 'utf8'
to the database right after establishing the connection.
Additionally
your server has to send the correct charset parameter to the
browser.
In PHP you can achieve this with a header() call:
header('Content-type: text/html; charset=UTF-8');
HTH
Micha

Similar Messages

  • Can't get UTF-8 characters from XML file displayed correctly (Cocoa Touch)

    Hi there,
    I'm trying to read an XML file with Japanese and Korean characters (encoded UTF-8) into a String like
    NSString *s = [[NSString alloc] initWithContentsOfURL:[NSURL URLWithString:@"http://.../data1.xml"] encoding:NSUTF8StringEncoding error:&e];
    However, the output just gives me some wrong characters. I also tried use NSData, but the result was the same.
    The same when I parse the XML file with
    NSXMLParser *parser = [[NSXMLParser alloc] initWithContentsOfURL:URL];
    The parser function just gives back gibberish.
    When I write the data into a table cell (cell.text = ...), only the first character is displayed followed by "...".
    Where can I start looking to get this right? I'm not so experienced in Cocoa yet, so I feel that I'm missing something simple here...
    Thanks,
    Thomas

    I think so (haven't checked), but it is a really simple test xml which is not really error prone).
    But the problem is a different one, because I also just tried to read a txt file with some Japanese characters into an NSString using initWithContentsOfURL.
    When I print the string in the console, I only get messed up characters (the latin characters next to the Japanese are displayed fine).
    It is a general problem of reading out an UTF-8 file from an url.
    Spent the whole last night to google something helpful but couldn't find anything. Now I'm tired at work
    Thomas

  • Problems with Turkish characters not displaying correctly

    A user is having problems with certain Turkish characters in particular fonts not displaying correctly (as shown below).
    The two fonts (Gill Sans and Helvetica LT CondensedLight) are used for English language marketing material.  Ideally, for continuity, the same font would be preferred for our Turkish language marketing material rather than changing it to a similar font.
    Helvetica LT CondensedLight
    Turkish character “ İ ” does not display correctly in either Word or InDesign.
    Gill Sans
    Turkish characters “ ş ” and “ ğ ” display correctly in Word but not InDesign.
    My questions are:
    1. For Gill Sans, why are the characters not displaying in InDesign but are in Word?
    2. I've noticed here: http://www.webtype.com/font/gill-sans-family/#glyphs-tab that the required characters are available within the Gill Sans font.  Is this because the font is newer and includes the additional characters?  Would this work in InDesign?

    One of the big differences between InDesign and Word is that Word will happily substitute glyphs without telling you. So, unless your installs of Word and of InDesign are using different versions of Gill Sans (which is possible, BTW) then your s-with-cedilla and your g-with-macron are actually not in Gill Sans but in some other font. I'm guessing Arial.
    It's possible that you have more than one Gill Sans installed (e.g. one in your Document Fonts folder and another in your system fonts folder) that have different glyph complements. Gill Sans has been around a long time, and the version I have from the 90s has no Turkish support whatsoever.
    As far as the capital-I-with-dot, you can check your glyph coverage in a variety of ways. In both InDesign and Word, you can open up a window that shows you all of the glyphs in a font. In InDesign, find it in Type -> Glyphs. In Word, it's called "Insert Symbol" and you can find it in Word 2010 by going to Insert -> Symbol -> More Symbols. I am guessing that the answer to this question is simply that your cut of Helvetica LT has no cap-I-with-dot. You'd need to pick a font that actually has support for Turkish. On WIndows, I use a very full-featured freebie called BabelMap to check font coverage. They have a Web version here:
    http://www.babelstone.co.uk/Unicode/babelmap.html
    but I personally prefer the downloadable .exe file.

  • Date can not display correctly in excel from .jsp

    Hi,
    I create a .jsp report to export the data to excel. the report run OK, except the date field can not display correctly.
    for example in database :start date ='01-oct-2003'
    in the except it displays to 02/06/02.
    It seem all the date field can not be control in the report, and control by somthing else
    Doese anyone come accross this problem?
    Thanks

    Hi Rong,
    Are you using the following demonstration to build your JSP?
    http://otn.oracle.com/products/reports/htdocs/getstart/demonstrations/index.html
    (Output to Excel with Oracle9i Report)
    I tried to do the same, and inserted a database date field in the JSP using Reports. I found the following:
    While making the template inside Excel, if I make sure that the format of the date cells is "Date" - some particular date format, the date field values from Reports does not get exported correctly.
    However, if you make sure that inside the template, the format of the date cells is not date, but "General", then the date field values are correctly exported to Excel.
    Pl try it and let us know.
    Navneet.

  • Eurosign not displayed correctly when picked from database

    Hi ..
    I'm having a problem getting a eurosign stored in an Oracle Database to be displayed correctly in my Crystal Reports 11.5.
    When using the built in (preview) Crystal Viewer, the eurosign is displayed correctly, but when I want to print the report directly to a printer or to export it to pdf the eurosign is displayed as a box?
    It only haapens when i need to pick the eurosign from the database. If I insert in a textbox on the report, it will show correctly.
    Please Help.
    Best regards,
    Jacob

    What is the source of the text stored in the database. I ran into an issue a ways back where someone was copying news articles from a website into their database and the euro symbol would not display correctly (unless the option HTML Text Interpretation was used).
    You might want to do a quick check to see if it is stored as an ascii character using a formula similar to the following;
    asc(mid({database, x, 1}))
    where x = the position of the euro symbol in the string.
    The formula result should be 128.
    Edited by: Graham Cunningham on May 22, 2009 12:20 PM

  • Thai characters not displaying correctly within App

    Hi everyone,
    I have a Adobe Flex Mobile app displays Thai text, however this is not displaying correctly. While developing the App on my Windows machine and testing using the Adobe Flash Builder mobile emulator, the font/characters look correct.
    However when running the app on either the MAC Adobe Flash Builder emulator, the iPhone simulator or on an actual iPhone, the font/characters are incorrect.
    First I thought that it was maybe an encoding issue (I am using locale properties files to replace text), so followed instructions at this website Flash Builder, Flex language bundles showing strange symbols. Not utf8 encoded.Sefol however this did not solve the issue.
    Looking more closely at the text rendered, it looks as though all of the characters for each word are actually being rendered, but they are just being rendered in correctly. Where as if it was a encoding issue then it would be missing characters completely.
    So if you look at the first character, in the correct version it is built up of 3 components. If you look at the second image, you can see that these three components are present but just not all appearing within one character.
    Is this a font issue? or is it actually an encoding/rendering issue?
    My code for testing this is just a simple label tag
    <s:Label text="ชื่อผู้ใช้" fontFamily="Arial" fontSize="12" />
    Many thanks.

    Ok so after doing a bit more of an investigation into the Font being the issue and not the encoding type, it seems as though if I use a specific font which I know has the Thai characters, then they are displayed correctly.
    I have embedded the font into the App using the code:
    [Embed(source="../assets/Kinnari.ttf", mimeType="application/x-font", embedAsCFF="true", fontFamily="ThaiFont")]
      private var ThaiFont:Class;
    Then on my UI I have added the font:
    <s:Label text="ชื่อผู้ใช้" fontFamily="Arial" fontSize="12" fontFamily="ThaiFont" />
    I was able to find this font at a Hawaiian Educational website! Thai fonts :: Thai Language Program, University of Hawai'i, Manoa
    Thanks @tooMuchTrouble for your help.

  • German Special Characters not displayed correctly in RTF  using code

    Hi ,
    In my code we are using webdynpro method
    WDResourceFactory.createResource(
    byte[] data, String resourceName,WDWebResourceType
    Type)
    Here in our code we are implementing this as
    ITemplateElement templateEl = wdContext.currentTemplateElement();
    WDResourceFactory.createResource(
    templateEl.getReportData(),
    reportName.substring(0, reportName.lastIndexOf('.')),
    WDWebResourceType.RTF); reportName.lastIndexOf('.')),
    Here templateEl.getReportData() returns a set of bytes which has some
    german special characters.
    We are generating the Bytes using String.getByes(),Just before
    String text = new String(in);
    collector.putBusinessObject(boName, bo);
    reportDocTemplateParser(collector, text);
    collector.removeBusinessObject(boName);
    String generatedText = collector.generateRTF();
    out = (null != generatedText) ? generatedText.getBytes() : null;
    The out put is the if i am giving a word with german special characters for eg:
    Betriebsübersichten it first gets converted to bytes and then passes through method WDResouseFactory.createResourse(.....) which creates an RTF file and finally in the RTF file it appears as Betriebsbbersichten the special character is not displayed correctly.
    i came to knw that while converting into bytes we have to make it RTF supported encoding.ie for eg generatedText.getBytes('cp1252').i even tried with other charactersets like ISO-8859,cp1253 and so on but none of them worked.
    It would be really great if you could suggest the needful.
    Thanks and Regards
    Neeta

    I soved this by using get_data function of response object. Then converting this into ISO-8859-1 charset.
    See code below.
    DATA :  lv_encoding   TYPE abap_encoding,
              lv_conv       TYPE REF TO cl_abap_conv_in_ce,
              lv_x_string   type xstring.
      lv_x_string = pv_http_client->response->get_data( ).
        lv_encoding = '1100'.
        lv_conv = cl_abap_conv_in_ce=>create(
                              encoding = lv_encoding
                                 input = lv_x_string ).
        lv_conv->read( IMPORTING data = pv_result ).

  • Accented characters do not display correctly if there is a variable beside it

    Hello,
    We are experiencing a problem when we have text with accented characters an a variable beside it within the same text box.
    The problem is that the accented characters in the text do not display correctly in the preview or publised course to Flash9
    These characters display correctly in Captivate in edit mode.
    This is the process we have followed:
    Export to XML
    Translated
    Import XML
    Publish to Flash9
    Captivate version:  4
    OS: Windows Vista SP2
    We have tried to work with locale in Spanish with no luck, the only solution we have found is to put the text and the variable in different text boxes
    I have pasted an image of the preview and also of the text in Captivate edit mode.
    Any help will be very welcomed !
    Tess

    Hi there
    I agree with Lilybiri that you should definitely file a Bug Report.
    However, a thought occurs here. Have you tried placing the accented text in a User Defined variable?
    Assuming this is a workaround, my thought is that you could then just have a caption with two variables. The User Defined variable containing the accented text followed immediately by the system variable providing the Project Name.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Certain special characters do not display correctly in Firefox ( font COLOR="#1f1a17" FACE="Symbol" SIZE="3" ¬ /font ). Is there a fix?

    Certain special characters which display correctly in Explorer do not display correctly in Firefox. Example: <font COLOR="#1f1a17" FACE="Symbol" SIZE="3">¬</font>
    Is there a fix?

    The symbol font usually doesn't work in Firefox, a website needs to use an Unicode replacement or an HTML entity to specify such a character.
    See:
    *[https://developer.mozilla.org/en/Mozilla_Web_Developer_FAQ#Why_aren.e2.80.99t_symbol.2fdingbat_fonts_working.3f Why aren’t symbol/dingbat fonts working? - MDC FAQ]
    *http://en.wikipedia.org/wiki/Unicode_symbols
    *http://en.wikibooks.org/wiki/Unicode/Character_reference/2000-2FFF

  • Webservice: Special characters not displayed correctly

    Hi,
    I'm facing a problem when retrieving informations via a webservice. I'm able to use it and data is retrieved but when there are special characters into the response they are not displayed correctly. Repsonse of the webservice is XML formatted.
    It seems to be a charcter set problem, strange thing is that the response is ISO-8859-1 formatted, this charset should normally display special characters like (é à ...) correctly.
    In my code I simply use an if_http_client object to use the webservice.
    pv_result = pv_http_client->response->get_cdata( ).
    Xml repsonse :
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <![CDATA[Eetcaf�/Steakhuis Baskent]]>
    Should be Eetcafé
    How can I specify a charset for the response object?
    I did the same in .NET, where I can bypass this issue specifying the charset like this.
    Dim reader As New StreamReader(oResponse.GetResponseStream(), System.Text.Encoding.Default)
    Thanks a lot for your help.
    Edited by: dom___35 on Dec 21, 2009 3:30 PM

    I soved this by using get_data function of response object. Then converting this into ISO-8859-1 charset.
    See code below.
    DATA :  lv_encoding   TYPE abap_encoding,
              lv_conv       TYPE REF TO cl_abap_conv_in_ce,
              lv_x_string   type xstring.
      lv_x_string = pv_http_client->response->get_data( ).
        lv_encoding = '1100'.
        lv_conv = cl_abap_conv_in_ce=>create(
                              encoding = lv_encoding
                                 input = lv_x_string ).
        lv_conv->read( IMPORTING data = pv_result ).

  • Characters not displayed correctly

    Hi,
    After support package installation, chararcters are not displayed correctly when i use application server,
    for example when i write internal table into a file in text mode and read it after into attachment in binary mode
    but characters are not correct. And after mail sent, the half or file is sent, not all data available.
    What could be the reason?
    Char exp in debug of attachment: ㅔ䠰㘹㌲〰㤰㘰㌍ਲ䙈〶㤳㈰〹
    I get above char after i read the file, code like following:
    do.
      clear attch.
      read dataset filename into attch.
      if sy-subrc <> 0.
       append attch.
       exit.
      endif.
      append attch.
    enddo.
    Thanks.

    I think this problem is some what related to Unicode and you should use Encoding statements whith ur open dataset stetement as follows.
    open dataset ....................Encoding UTF-8.
    Encoding UTF-8 is for unicode environment.
    Hope this will help u.

  • Pdf not displayed correctly in preview

    We have a new A) scanner (colortrac Ci40) and when we scan a pdf it is displayed in preview as if it is all wrinkled up.
    Only in prewiew and if imorted in vectorworks. (on both OSX 10.5 and 10.6)
    The same problem appears on a iPad.
    It is not displayed correctly.
    In all other programms I tried it is displayed properly.
    We also have a small a4/a3 scanner from konica minolta and these scans display corectly in preview.
    Is this only a preview problem and should I ignore it?

    Hi there,
    I have a very similar problem: a number of pdf files that I can see perfectly well in Safari/GoogleChrome do NOT show correctly in Preview or ANY iPad app I have (Notability, Adobe, PDF Expertm iAnnotate, Dropbox etc.).
    The problem is that punctuation -- with the expection of periods or bolded text -- does not show properly. For example, commas and quotation marks to not show, and some numbers to not show.
    Moreover, once I have annotated/viewed the problematic file on the IPad and resync to dropbox to view on Mac vis Adobe (which I do with most pdf files with no problems), I get an error message upon reopening the pdf file saying "Cannot extract the embedded font 'FAFWQV+--unknown-2--'. Some characters may not display or print correctly." (the 'quoted' text changes each time). When opening in Preview, no error message appears, though the fole is still lacking punctuation etc.
    Here is a link to one problematic pdf:http://niis.cass.cn/upload/2012/12/d20121201200145301.pdf
    NB: the file is in Mandarin, however I can successfully open/edit/annotate/sync other pdfs using Mandarin font so I'm not sure if the language is related to the problem.
    I would be extremely grateful for some help with this please!
    Thanks!

  • Umlauts not displayed correctly

    Hi,
    We have developed a screen in 12.1 and the umlauts (German & Spanish) are not display correctly. Is there a language pack / custom actions we need deploy for this to work properly?
    Regards,
    Chanti.

    Its those special characters with a pair of dots on their head, like ä etc. These are not being displayed properly in the Web UI screens after upgrading to 12.1.
    These special characters are coded in the alert/warning/error messages in a .js file. Two things here -
    i) When we did the migration from 11.5 to 12.1, those got transformed to a [] (read squarebox) sorts. Are these something that the migration tool can't handle as desired?
    ii) We fixed these characters manually in the code in 12.1. But when we run the script they are still not displayed correctly in the Web UI, for instance ä is being displayed as A~, something like that. Wondering if we need to deploy some custom actions or add a line at the top of .js or .html code?
    Regards,
    Chanti.

  • Google fonts not displaying correctly since updating to Firefox 31.0

    Since updating to Firefox 31.0, the vast majority of Google / web fonts are not displaying correctly, including icons that are being replaced with random characters. When I view the Google web fonts page, only a few display correctly, the rest just default to a sans-serif font.
    - I've tried running in safe mode with no add-ons enabled.
    - I've tried disabling all add-ons then re-enabling one by one.
    - I've checked the tickbox in the font settings for 'Allow pages to use their own fonts' is ticked
    Any help appreciated, it's got quite frustrating now.
    Thanks, Greg

    You can do a font test to see if you can identify corrupted font(s).
    *http://browserspy.dk/fonts-flash.php?detail=1
    You can try different default fonts and temporarily disable website fonts to test the selected default font.
    *Tools > Options > Content : Fonts & Colors > Advanced
    *[ ] "Allow pages to choose their own fonts, instead of my selections above"
    You can check for problems with preferences.
    You can check the <b>gfx.downloadable_fonts.enabled</b> pref on the <b>about:config</b> page and make sure that it is set to true (if necessary double-click the line to toggle its value).
    Delete a possible user.js file and numbered prefs-##.js files and rename (or delete) the prefs.js file to reset all prefs to the default value including prefs set via user.js and prefs that are no longer supported in the current Firefox release.
    *http://kb.mozillazine.org/Preferences_not_saved
    *http://kb.mozillazine.org/Resetting_preferences
    Create a new profile as a test to check if your current profile is causing the problem.
    See "Creating a profile":
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    If the new profile works then you can transfer files from a previously used profile to the new profile, but be cautious not to copy corrupted files to avoid carrying over problems.
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    Boot the computer in Windows Safe mode with network support (press F8 on the boot screen) as a test to see if that helps.
    *http://www.bleepingcomputer.com/tutorials/how-to-start-windows-in-safe-mode/

  • Symbol font is not displaying correctly on mozilla 23.0.1?

    I am displaying a html page inside a frame having some Maths symbols, using SYMBOL font. but these symbols are not display correct on mozilla browser. provide some solution.

    Hi sangeeta, the problem with writing code to solve this problem is that you likely need to create a table or a pair of arrays to contain the corresponding characters. As long as you are going to do that, it might be easier to edit the pages. Or add an external script to those pages to "fix" the references.
    If you are saying that the HTML pages are out of your control, that's harder...
    Is it an option to load the page dynamically onto your server so it can be processed by ASP.Net and then served using a URL from your server?
    If not, are your page and the framed page on the same server? In that case, perhaps a JavaScript function that "fixes" the page could be useful.
    If not, it's hard to see how you can overcome the "same origin" security constraints and get to the framed page.

Maybe you are looking for

  • Qosmio G30-126 - Win7 or Vista instaltion hdd not showing

    Hello everyone, i have one system Qosmio g30-126. I dont have the recovery cds. I want to instal the Win7 or Win Vista. He is not showing me the both 200+200 HDD. plz telling to me what i do.

  • Can we disable the default push buttons on the ALV Grid

    Hi,     Can we disable the default push buttons on the ALV Grid Control...     If so, pls send me the procedure... thanks and regards    raghu

  • Pl/sql Year to Date Function

    Dear All! Its very urgent task for me. i'm working on Oracle discoverer. i'm creating Project Year to Date report. i need one year to date function. i've only period name. The scnerio is this, in our company financial year is starting from (April to

  • In my GREP style I want it to find a different / (forward slash) in glyph set

    Hello! I have a GREP style that I have been using to find fractions and it works fine. The issue now, is we are not going to be using the standard / in the glyph set, but a different one. It's a unique one built into the font. This is the part of the

  • FTPS connection

    Hello Community, I have created a certificate to use ftps with proftp and with a ftps-client (curl). Instead of using curl I want to write my own ftpsclient. The Problem is, I got an handshake exception after 1 minute. I hope you can help me out. Her