Howing greek characters with accents

Hello everybody,
I've an applet developed using swing where I've to show some greek text. The problem is that I can see the standard greek characters but I cannot see those characters with accents or spirits.
The document that contains the text is a DefaultStyledDocument and, right now, I've configured it in this way:
Style normal_style = this.addStyle("normal", null);
StyleConstants.setFontFamily(normal_style, "lucida");
this.setParagraphAttributes(0, 0, normal_style, false);
I've used the lucida family since I've read that family is able to render the greek but any character with an accent is rendered with a small rectangle.
I upload the text from a text file encoded using utf8. The example text is the following:
Κύκλου τμήματος δοθέντος προσαναγράψαι τὸν κύκλον,οὗπέρ ἐστι τμῆμα.
Ἔστω τὸ δοθὲν τμῆμα κύκλου τὸ ΑΒΓ· δεῖ δὴ τοῦ ΑΒΓ τμήματος προσαναγράψαι τὸν κύκλον, οὗπέρ ἐστι τμῆμα.
Τετμήσθω γὰρ ἡ ΑΓ δίχα κατὰ τὸ Δ, καὶ ἤχθω ἀπὸ τοῦ Δ σημείου τῇ ΑΓ πρὸς ὀρθὰς ἡ ΔΒ, καὶ ἐπεζεύχθω ἡ ΑΒ· ἡ ὑπὸ ΑΒΔ γωνία ἄρα τῆς ὑπὸ ΒΑΔ ἤτοι μείζων ἐστὶν ἢ ἴση ἢ ἐλάττων.
Also, when I save this text using my application my new saved file still contains the correct characters with the accent and all the stuff.
The problems seems to be just the rendering in the application...
Any idea?

Hello everybody,
I've an applet developed using swing where I've to show some greek text. The problem is that I can see the standard greek characters but I cannot see those characters with accents or spirits.
The document that contains the text is a DefaultStyledDocument and, right now, I've configured it in this way:
Style normal_style = this.addStyle("normal", null);
StyleConstants.setFontFamily(normal_style, "lucida");
this.setParagraphAttributes(0, 0, normal_style, false);
I've used the lucida family since I've read that family is able to render the greek but any character with an accent is rendered with a small rectangle.
I upload the text from a text file encoded using utf8. The example text is the following:
Κύκλου τμήματος δοθέντος προσαναγράψαι τὸν κύκλον,οὗπέρ ἐστι τμῆμα.
Ἔστω τὸ δοθὲν τμῆμα κύκλου τὸ ΑΒΓ· δεῖ δὴ τοῦ ΑΒΓ τμήματος προσαναγράψαι τὸν κύκλον, οὗπέρ ἐστι τμῆμα.
Τετμήσθω γὰρ ἡ ΑΓ δίχα κατὰ τὸ Δ, καὶ ἤχθω ἀπὸ τοῦ Δ σημείου τῇ ΑΓ πρὸς ὀρθὰς ἡ ΔΒ, καὶ ἐπεζεύχθω ἡ ΑΒ· ἡ ὑπὸ ΑΒΔ γωνία ἄρα τῆς ὑπὸ ΒΑΔ ἤτοι μείζων ἐστὶν ἢ ἴση ἢ ἐλάττων.
Also, when I save this text using my application my new saved file still contains the correct characters with the accent and all the stuff.
The problems seems to be just the rendering in the application...
Any idea?

Similar Messages

  • Showing greek characters with accents

    Hello everybody,
    I've an applet developed using swing where I've to show some greek text. The problem is that I can see the standard greek characters but I cannot see those characters with accents or spirits.
    The document that contains the text is a DefaultStyledDocument and, right now, I've configured it in this way:
              Style normal_style = this.addStyle("normal", null);
              StyleConstants.setFontFamily(normal_style, "lucida");
              this.setParagraphAttributes(0, 0, normal_style, false);
    I've used the lucida family since I've read that family is able to render the greek but any character with an accent is rendered with a small rectangle.
    I upload the text from a text file encoded using utf8. The example text is the following:
    Κύκλου τμήματος δοθέντος προσαναγράψαι τὸν κύκλον,οὗπέρ ἐστι τμῆμα.
    Ἔστω τὸ δοθὲν τμῆμα κύκλου τὸ ΑΒΓ· δεῖ δὴ τοῦ ΑΒΓ τμήματος προσαναγράψαι τὸν κύκλον, οὗπέρ ἐστι τμῆμα.
    Τετμήσθω γὰρ ἡ ΑΓ δίχα κατὰ τὸ Δ, καὶ ἤχθω ἀπὸ τοῦ Δ σημείου τῇ ΑΓ πρὸς ὀρθὰς ἡ ΔΒ, καὶ ἐπεζεύχθω ἡ ΑΒ· ἡ ὑπὸ ΑΒΔ γωνία ἄρα τῆς ὑπὸ ΒΑΔ ἤτοι μείζων ἐστὶν ἢ ἴση ἢ ἐλάττων.
    Also, when I save this text using my application my new saved file still contains the correct characters with the accent and all the stuff.
    The problems seems to be just the rendering in the application...
    Any idea?

    Hello everybody,
    I've an applet developed using swing where I've to show some greek text. The problem is that I can see the standard greek characters but I cannot see those characters with accents or spirits.
    The document that contains the text is a DefaultStyledDocument and, right now, I've configured it in this way:
              Style normal_style = this.addStyle("normal", null);
              StyleConstants.setFontFamily(normal_style, "lucida");
              this.setParagraphAttributes(0, 0, normal_style, false);
    I've used the lucida family since I've read that family is able to render the greek but any character with an accent is rendered with a small rectangle.
    I upload the text from a text file encoded using utf8. The example text is the following:
    Κύκλου τμήματος δοθέντος προσαναγράψαι τὸν κύκλον,οὗπέρ ἐστι τμῆμα.
    Ἔστω τὸ δοθὲν τμῆμα κύκλου τὸ ΑΒΓ· δεῖ δὴ τοῦ ΑΒΓ τμήματος προσαναγράψαι τὸν κύκλον, οὗπέρ ἐστι τμῆμα.
    Τετμήσθω γὰρ ἡ ΑΓ δίχα κατὰ τὸ Δ, καὶ ἤχθω ἀπὸ τοῦ Δ σημείου τῇ ΑΓ πρὸς ὀρθὰς ἡ ΔΒ, καὶ ἐπεζεύχθω ἡ ΑΒ· ἡ ὑπὸ ΑΒΔ γωνία ἄρα τῆς ὑπὸ ΒΑΔ ἤτοι μείζων ἐστὶν ἢ ἴση ἢ ἐλάττων.
    Also, when I save this text using my application my new saved file still contains the correct characters with the accent and all the stuff.
    The problems seems to be just the rendering in the application...
    Any idea?

  • Unicode characters with accents won't display in Java Swing applications

    I'm using FreeMind (a Java Swing application) and I need to enter classical Greek characters with accent marks. When I type an accented Greek character, FreeMind displays the unaccented character. However, I can type the accented character in MS Word, then copy and paste into FreeMind, the accented character appears.
    One of the FreeMind developers indicated this was a Java Swing issue, not FreeMind, and suggested I test with another Swing application. So, I installed jEdit and got exactly the same results. I can paste an accented character into jEdit, but I cannot type it in directly.
    I'm using Windows Vista with Java 6 Update 22 (build 1.6.0_22-b04). I also tested on a XP Pro box with Java 1.6.0_18-b07 and got the same result.
    One other note: A couple days ago, I was able to type accented Greek characters into FreeMind. But it only worked for a couple days and then the behavior reverted to unaccented characters. It is possible, but I don't recall specifically, that I updated Java during the time and that may indicate a bug in one version of Java but not another.
    Any assistance or guidance would be greatly appreciated!
    Darin

    Walter,
    The link you provided does not appear to describe the Greek Polytonic keyboard. (The page also describes using the "Option" key as the dead key. There is no "Option" key on my keyboard. I'm using a Sony VGN-NS140E purchased in Chicago, i.e. standard physical US keyboard.)
    Please see http://darindavis.net/languages/keyboard_Greek.pdf for a detailed description of how to use the Greek (Polytonic) keyboard in Windows to produce a complete set of accented classical Greek characters. This method works in MS Word and Notepad. I enabled the Greek (Polytonic) keyboard with:
    Windows (Vista) Start > Control Panel > Regional and Language Options > Change Keyboards > General > Add > Greek (Greece) > Greek Polytonic
    A test that will demonstrate whether you can replicate the error is to do the following in both MS Word (or Notepad) and jEdit (or FreeMind):
    1. Enable the Greek Polytonic keyboard
    2. Type "\" then "e" which should produce an epsilon with smooth breathing and grave accent (ἒ)
    When I do this in MS Word or Notepad, I see the epsilon with smooth breathing and grave accent. When I do this in jEdit and FreeMind, I only see an epsilon.
    I recorded a screencast to illustrate the problem: http://www.screencast.com/t/TRKkKQrCgbN
    Actually, this problem is transient. Sometimes FreeMind or jEdit will display accented characters, other times it won't. Ironically, the first time I recorded the above referenced screencast, a few characters in jEdit did appear with accents. A couple minutes later, I re-recorded the screencast and as you can see jEdit did not display the accents. Between the two recordings I literally did nothing other than stop the Jing recording and start a new one. There is another variable at play here and I can't determine what it is. The most likely source seems to be Java since MS Word and Notepad consistently display accent characters.
    Thanks,
    Darin

  • How can I print characters with accent using TEXT_IO?????

    I need to write characteres with accent, like ó,Á using TEXT_IO.....
    Please help me!!!!

    Francois:
    I try to use your solution but don't work....maybe is necessary setting something in the database or in the developer......
    I'm writing an xml format file, and the string that I need to write is:
    <Item Name="DUMMY" FontSize="1000" DirtyInfo="true" Height="16" MouseNavigate="false" XPosition="109" FontName="Arial" ForegroundColor="black" Width="64" YPosition="191" FontSpacing="Normal" Label="OK" FontWeight="Negrita" FontStyle="Normal" ItemType="Botón" CanvasName="WEBUTIL_CANVAS">

  • Trouble with characters with accent marks

    Hi,
    I have an Indesign document of Quebec.  Many town names have characters with accent marks on them but when i create my PDF they show up as a small black box instead.  Is there any way of fixing this, other than converting my type to paths?
    I'm on a Mac using Indesign v3 and Acrobat v7
    Thanks
    Rick

    oldtoby11 wrote:
    OK i already had the Apr 2005 patch installed
    i went to:
    Indesign preferences
    general tab
    Font downloading and imbedding- Always subset fonts with glyph counts greater than 2000
    Is this the right place?
    I changed the number from 2000 to 200, (i also did it set at 20)  but all that did was cause even more type to display as black boxes
    I also went into my ID print settings and in the graphics tab i changed the fonts menu from "Complete" to "subset" and unchecked "download PPD fonts"
    I also tried printing stright to PDF instead of postscripting and distilling
    None of it changed anything or had any effect.
    Since changing fonts in Freehand had an effect, could it be a corrupted font file?
    No, no. Don't reduce the number in the prefs, and You DO want complete and download PPD fonts checked.
    DId you try resaving with the same fonts in Freehand and making sure you chose to embed them? I was never a Freehand user, so I don't really know what options are available.

  • IOS 8 lockscreen keyboard does not let me input characters with accent marks. My password has an accent mark. I can't restore the device without unlocking it and turning off find my iPod. What can I even do here?

    I do have a third party keyboard installed (fleksy), and I removed english and emoji from the keyboards list in settings before rebooting the ipod. When it booted up, it asked for my device password with the default keyboard, but I can't type any letters with accent marks, so I can't enter the password. I figured I could fix this by restoring a backup and changing my password, but I can't restore a backup without turning off Find My iPod - which of course requires me to unlock the device with the device password, which I can't do. Am I stuck here? Is there anything at all that I can do?

    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Forgot passcode or device disabled
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        

  • RegEx for characters with accents and such but not alphanum or punctuation

    I'm creating a fuction that checks for the following code snip. I'm having trouble understanding what I need to do to get the last criteria. How do I specifically check for characters with additional marks  such as   a'   but  not  a
    Thanks in advance for any help or advice you might give
        <!---Contain characters from three of the following five categories:--->
                <!---English uppercase characters (A through Z)--->
       <cfif ReFind("[[:upper:]]+",passwd,0, false) gt 0>
        <cfset numCharSets = numCharSets + 1>
       </cfif>
                <!---English lowercase characters (a through z)--->
       <cfif ReFind("[[:lower:]]+",passwd,0, false) gt 0>
        <cfset numCharSets = numCharSets + 1>
       </cfif>
                <!---Base 10 digits (0 through 9)--->
       <cfif ReFind("[[:digit:]]+",passwd,0, false) gt 0>
        <cfset numCharSets = numCharSets + 1>
       </cfif>
                <!---Non-alphabetic characters (for example, !, $, #, %)--->
       <cfif ReFind("[[:punct:]]+",passwd,0, false) gt 0>
        <cfset numCharSets = numCharSets + 1>
       </cfif>
                <!---A catch-all category of any Unicode character that does not fall under the
          previous four categories. This fifth category can be regionally specific.--->

    AWEInCA1 wrote:
    How do I specifically check for characters with additional marks  such as   a'   but  not  a
    By recognizing they are seperate characters.  You will probably want to use codes to access these characters.
    \uFFFF where FFFF are 4 hexadecimal digits
    Matches a specific Unicode code point. Can be used inside character classes.
    \u00E0 matches à encoded as U+00E0 only. \u00A9 matches ©
    http://www.regular-expressions.info/refunicode.html
    http://www.regular-expressions.info/reference.html

  • Characters with accent in Sent Messages

    In Mail, writting a message in french, why the following sentence with accents:
    "J'ai réfléchi à la meilleure solution pour cette opération"
    becomes in the Sent Messages
    "J'ai réfléchi à la meilleure solution pour cette opération"
    Is there any fonts not to use? In that instance, I believe I used Tahoma

    If I remember correctly I might have done a reply to a mail, typed my message, then select all text (so including the original mail at the bottom) and change the font. It is a mistake from my part. Normally I would change only the font of my own text only.
    There not really any reason why a font change should cause such a problem. All fonts used in OS X have the same encoding, and emails contain charset= statements to tell apps what encoding to use when reading (you can see this code by doing View > Message > Raw Source). For some reason Mail is using the wrong encoding for reading those.

  • Pb with accent

    Hi,
    I've got a problem with WL 6 SP1 running on Solaris 5.8. I don't manage to get
    my characters with accents properly. For an "é" or an "è" (&eacute or &egrave),
    i get an &yacute ??? or something like that
    It works properly with my server WL 6 SP1 on Windows NT 4. It's exactly the same
    files.
    I've this tag in my HTML and JSP pages :
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> but it
    doesn't seem to make any change.
    Has someone an idea ? Someone talk me about the LC_... environment variable on
    UNIX but it doesn't work.
    Thanks
    Yvan

    i use this
    <portlet:validatedForm event="myevent" ... >
    <webflow:text name="mytext"/>
    </portlet:validatedForm>
    and i don't know how can i use the enctype="application/x-www-form-urlencoded"
    with URLEncoder??
    am i in the right way?
    "Falk" <[email protected]> wrote:
    >
    Did you try to URL-encode and -decode your data?
    Otherwise it will get corrupted. Your data has
    to comply to the HTTP protocol. International
    characters have to be encoded to get submitted
    correctly.
    There are helpers to do it, like
    java.net.URLEncoder / Decoder.
    Some tags in Portal do that for you automagically,
    like <cm:getProperty encode="url"/>
    Falk
    "jpmeert" <[email protected]> wrote:
    Hello,
    I have some problem to use, character like 'é' or 'à', ...
    i use form tag in Weblogic Portal 4.0, and when i get the data fromthe
    form,
    i have character like 'é' for any character who have a code greater
    than 128.
    There is some one who have a solution?

  • Character with accents

    Hi, the data merge change all the characters with accents, in my sourece file appears with accent. How can i solve that...
    Ramírez for Ram√≠rez
    Help please!!!

    Thanks! it was very helpfull the UTF16 encoding works!!!

  • Cannot Store Greek Characters in NVARCHAR2 columns

    Can someone please help.
    I have a table TEST with one column A of type NVARCHAR2(20) and when I try to insert the greek character Ω(Omega) - it gets stored as O instead.
    I am inserting using SQL Developer using the 'N' prefix and my environment is as follows:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    NLS_CHARACTERSET = WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET = AL16UTF16
    NLS_LANG setting on client side is ENGLISH_UNITED KINGDOM.WE8MSWIN1252.
    Why can I not insert greek characters with the above setup and what do I need to do/change in order to be able to insert greek characters in a database using the national characterset for storing unicode data ?

    Result of running SELECT a, dump(a) FROM TEST after insert an 'O' and an 'Ω' is as follows:
    A DUMP(A)
    O     Typ=1 Len=2: 0,79
    O     Typ=1 Len=2: 0,79
    I added a VARCHAR column, column B, there is no difference in what is getting stored in the NVARCHAR column when inserting 'Ω', result is below:
    INSERT INTO TEST (A, B)
    VALUES(N'Ω', 'Ω');
    SELECT a, dump(a, 1016), b, dump(b, 1016) FROM TEST;
    A DUMP(A, 1016) B DUMP(B, 1016)
    O     Typ=1 Len=2 CharacterSet=AL16UTF16: 0,4f     O     Typ=1 Len=1 CharacterSet=WE8MSWIN1252: 4f
    I'm I missing something here, since my understanding is that NVARCHAR2 columns should be able to store Unicode data ?

  • Printer don't print greek characters

    What i'm trying to do is to read a .txt file and sent it to printer. The problem is that the printer normally print the latin alphabet characters but replace the greek characters with ???. I'm really new to C# programming so if anyone could help it will
    be realy thankfull. I use windows 7 ultimate 64-bit and microsoft visual studio 2013. My code is:
    System.IO.StreamReader fileToPrint;
    System.Drawing.Font printFont;
    private void printButton_Click(object sender, EventArgs e)
    string printPath = System.Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
    fileToPrint = new System.IO.StreamReader(printPath + @"\myFile.txt");
    printFont = new System.Drawing.Font("Arial", 10);
    printDocument1.Print();
    fileToPrint.Close();
    private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
    float yPos = 0f;
    int count = 0;
    float leftMargin = e.MarginBounds.Left;
    float topMargin = e.MarginBounds.Top;
    string line = null;
    float linesPerPage = e.MarginBounds.Height/printFont.GetHeight(e.Graphics);
    while (count < linesPerPage)
    line = fileToPrint.ReadLine();
    if (line == null)
    break;
    yPos = topMargin + count * printFont.GetHeight(e.Graphics);
    e.Graphics.DrawString(line, printFont, Brushes.Black, leftMargin, yPos, new StringFormat());
    count++;
    if (line != null)
    e.HasMorePages = true;

    Thanks for the quick replay it worked with: 
    fileToPrint = new System.IO.StreamReader(printPath + @"\myFile.txt", Encoding.Default);

  • How do I type characters with tilde accent marks, specifically an "n"?

    How do I type characters with tilde accent marks, specifically an "n"?
    I've tried "OPTION N" with no luck... Using a font that supports it...

    For example, press Option+N and should see the tilde accent, then press the letter such as n

  • How to see Greek characters inside a PDF report (made with XML Publisher)

    Hi,
    I just patched my e Business Suite (ver. 11.5.9) in order to use XML Publisher 5.6.3.
    It works fine, but I have a big problem when I want to see Greek characters inside my report; instead to see the Greek characters I see only '?????'
    I tried to add some font under the XML Publisher Administrator responsibility following the Doc ID: 373377.1 "How To Install a Font Using XML Publisher Administrator", but my problem remains: I don't see my Greek characters
    Do I need to add any other fonts on the file system ? and where ? (under which path), or I set something at the XML Publisher Administrator responsibility level (under the Administration link) ?
    Any help will be appreciated, because it's very urgent to know how to fix this problem.
    Thanks in advance
    Alex

    Alex,
    Please verify the value of $AF_CLASSPATH variable and make sure that JRE_TOP/lib/fonts is part of this env variable (in addition to $CLASSPATH).
    Note: 353164.1 - Chinese Characters Appear as Question Marks(?) When Using a Data Template
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=353164.1
    Note: 399518.1 - Arabic Characters Appear As Question Marks
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=399518.1

  • How to load CSV with accented characters?

    Hi,
    I have a database instance with NLS_CHARACTERSET = 'AL32UTF'. I upload a csv file with APEX into WW_FLOW_FILES table and then parse it with dbms_lob.instr. The problem that I am facing is that if I save the CSV file in UTF8, then this works fine, if I save it in any other encoding then it's displaying 'funny' characters when I try to parse it and display the parsing result and the source data contains some accented characters, like, á, é, ő etc,
    I am not sure if this is an APEX issue or I rather be turning to NLS forum. TIA.
    Tamas
    Edited by: Tamas Szecsy on Jan 30, 2011 6:34 PM

    Did you every find a resolution to this issue on importing with accented characters?

Maybe you are looking for

  • Notifications on Web Apps

    Does anyone know if notifications (sms and or email) can be used on web apps? Does it have to be a web-commerce site or can it be a trial site?

  • Using Variable in Email

    New to OWB.. Trying to include system info in emails.. example: database name, hostname etc... Any help would be appreciated.

  • Edit spelling dictionary

    Does Firefox 5.0 not store spelling lists in the persdict.dat file anymore? I accidentally added a word to the dictionary and now I want to remove it, but I can't find the file in the C:\Documents and Settings\[User]\Application Data\Mozilla\Firefox\

  • 'Supplier Registration' option

    Hello, We work with SRM_SERVER 550, SP12. We want to use the 'Supplier Registration'. Do I have to use XI (Exchange Infrastructure) to transfer the suppliers from the supplier registration system to the SRM system? Thanks Yaron Malka, HP

  • I can't accessing itune store

    i can't accessing itune store