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?

Similar Messages

  • 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?

  • 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 to show Greek characters in Italic style

    How to show Greek characters in Italic style
    Hi all, I'm tryng to resolve a problem with the Greek characters
    I need to display labels in two languages, english or greek inside my report.
    At the beginning of the report I have a placeholder with the xml code : *<?param@begin:p_language?>*, so I can understand inside my report if the user chose the Greek or English, and then I have many placeholders (labels) which have to be written in Greek or English.
    If the language chosen is English, I don't have any problem to show my labels bold or italic in every fonts
    Inside the placeholder I wrote the following code:
    *<?xdofx:if $p_language = 'Ελληνικά' then 'Οργανισμός' else if $p_language = 'Αγγλικά' then 'Organization' end if?>*
    I can chose font, style and bold/not bold directly from Word and when I run the report in pdf I see exactly what I chose.
    If the language chosen is Greek....I see always the label in Arial, NOT BOLD and NOT ITALIC...
    In order to see Greek characters BOLD:
    a) I added (under the ADMIN tab/Runtime Configuration/Font Mappings/ ) a font named Arial and I addeda target Font named Arialbd.ttf under the directory: D:\Oracle\Oracle_Homes\BIP_101341\jdk\jre\lib\fonts
    b) I changed the font (from word) to Arial
    Now, ONLY with tha ARIAL font I can see my labels in greek bold, but I can't still see them in italic style.....
    So, I tried to force these condition inside the placeholder with the following code:
    *<?if:$p_language = 'Ελληνικά'?><xsl:attribute xdofo:ctx="inlines" name="font">Times New Roman</xsl:attribute><xsl:attribute xdofo:ctx="inlines" name="font-style">Italic</xsl:attribute><xsl:attribute xdofo:ctx="inlines" name="color">red</xsl:attribute><xsl:attribute xdofo:ctx="inlines" name="font-weight">bold</xsl:attribute>Οργανισμός<?end if?>*
    ...but I continue to see the labels in Greek only bold, red but not in Italic Style......
    Also adding another font called Arialbi.ttf (Arial bold Italic)...I can't see my labels in Greek bold with Italic Style....
    Anybody had the same problem with another alphabet different from the latin one ???
    Any help will be appreciated
    Thanks in advance
    Alex

    Hi Chris,
    Thanks for your reply.However I still have some problems.
    I couldnt get jpdk 3.0.9.0.4 version the latest version that I
    got was jpdk 3.0.9.0.2.
    I tried the 3.0.9.0.2 version and it gave me the below error.
    Error-
    sun.io.MalformedInputException
         at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java,
    Compiled Code)
         at java.io.InputStreamReader.convertInto
    (InputStreamReader.java, Compiled Code)
         at java.io.InputStreamReader.fill
    (InputStreamReader.java, Compiled Code)
         at java.io.InputStreamReader.read
    (InputStreamReader.java, Compiled Code)..........
    Can you guide me regarding this ???
    Regards,
    Mandar.

  • 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.

  • 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">

  • Administrator (ver.10.1.2.48.18) doesn't show greeks characters correctly

    Hi everybody,
    I re-install on my new pc, from the file as_windows_x86_bi_tools_101202.zip the following version of Discoverer Administrator: 10.1.2.48.18
    I need to see both English and Greek languages and when I installed the software (from the installer) I chose both these language.
    Inside the registry I have the following NLS_LANG: GREEK_GREECE.EL8MSWIN1253
    So, now my problem is this: when I open the Administrator, after the credentials (login, etc...) and I try to open a business area, if this last one is written with greek characters I see black rectangles, but once opened I see the correct label in Greek.
    But all the Hierarchies' and summaries' labels are black rectangles (if written in Greek) as the formulas inside the new items.....
    On the file system I added the following fonts:
    ALBANWTJ.ttf
    ALBANWTK.ttf
    ALBANWTS.ttf
    ALBANWTT.ttf
    ALBANYWT.ttf
    under the paths:
    1. C:\Oracle\Oracle_Homes\OBI_Tools_10g\jre\1.4.2\lib\fonts
    2. C:\Oracle\Oracle_Homes\OBI_Tools_10g\jdk\jre\lib\fonts
    3. C:\Program Files\Java\jre1.5.0_15\lib\fonts
    but my problem didn't still resolve
    Anybody had the same problem with another language (russian, chinese for example) ???
    Any help or hint will be appreciated
    Alex

    Try anything here that you haven't already tried:
    iPhone, iPad, or iPod not recognized in iTunes for Windows - Apple Support

  • 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.

  • The final solution to greek characters in AWT applets(????)

    OK. I have searched the whole web and asked whoever I knew. The question was simple: How do I show greek characters in a TextField in an AWT Applet? Some people said that I should change the font properties inside MY jre/lib installation but then I want EVERYONE and not just ME seeing the greek characters! Adding a greek font into the applet's jar was another "solution" but who wants to have an applet of about 2MBs? So I think I have come up to the answer ... ONLY with jre > 1.4.0 somebody could handle greek characters in AWT Applets without trooble! If somebody has managed to show and handle greek characters in a TextField inside an AWT Applet (which I doubt), I would like to know EXACTLY HOW as I am tired of non-working "solutions"! I hope this post saves you from a lot of time searching for the HolyGrail

    I haven't worked with a TextField but I worked with a JTextField. My solution wasn't very straightforward but it did the job.
    I used this solution in order to work with linux, but you must add an if
    statement to check the OS.
    If your problem was how to view Greek characters in a non internation version of
    Java, then as far as I know, you cannot! Also JDK 1.3.1_01 and j2re 1.4.0_01
    use a different way of loading system fonts, so with the latter you cannot use system fonts unless you put them in you java directory.
    (I use linux so don't be surprissed if these work different in windows)
    import java.io.*;
    public class JTextFieldGr extends javax.swing.JTextField {
    public JTextFieldGr() {
    super();
    myInit();
    public JTextFieldGr(String text) {
    super(text);
    myInit();
    public void myInit() {
    addKeyListener(new java.awt.event.KeyListener() {
    public void keyTyped(java.awt.event.KeyEvent evt){
    try{
    String tmp=""+evt.getKeyChar();
    String uk=new String(tmp.getBytes(),"ISO-8859-7");
    evt.setKeyChar(uk.charAt(0));
    }catch(UnsupportedEncodingException e){
    e.printStackTrace();
    public void keyPressed(java.awt.event.KeyEvent evt){
    public void keyReleased(java.awt.event.KeyEvent evt){
    }

  • Reading TemSe files in unicode system showing greek letters

    Hi Gurus,
    I am facing issue with the newly converted unicode (cp 4102) spool files. I am using the standard functions RSTS_OPEN_RLC , RSTS_READ and RSTS_CLOSE to read TemSe files and create output files on application server using OPEN DATASET and TRANSFER.
    After conversion to unicode, these function calls are returning some greek characters with size of the itab doubled (and that is due to double-byte UTF-16 charcter set) .
    The program generates
    Runtime Error          CONVT_CODEPAGE
    Except.                CX_SY_CONVERSION_CODEPAGE
    " While a text was being converted from code page '4102' to '1100', on
    the following occurred:
    - an character was discovered that could not be represented in one o
    the two code pages;
    - the system established that this conversion is not supported."
    the statement
    TRANSFER TEMSE_DATA TO ACT_FILE
    generates this error.
    Can someone tell me what is missing ?
    TIA
    Wasim

    The extra characters are pasted below:
    ㄀  㤀㄀    ㈀㈀㄀㐀㄀ ㈀㜀㐀㐀㐀  㤀 ㈀ 㘀 㤀㈀ 圀 㤀㐀㄀ ㄀唀⸀匀⸀ 䈀䄀一䬀
    These kind of characters are also visible in SP11 contents for spool files.
    Again the question: which font to you use to display in your SAPGUI?
    The spool files are generated through language EN and should not show any non-english characters.
    That doesn´t tell anything. One advantage of Unicode is that you can enter, display and modify all languages/characters with an English logon.
    Another question: What technology is generating those spool files? Sapscript? Smartforms? Self written program?
    Markus

  • 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);

  • 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?

Maybe you are looking for

  • I can't download anything my purchase and get message that says I don't have write access in itunes

    I am trying to downlaod music from itunes for the first time and get an error message iTunes couldn't download your purchase.  You don't have write access for your iTunes Media folder or a folder within it.  Change permissions in the finder and then

  • Question for video editors re. external storage

    Sorry this isn't directly FCP-related, but I'm hoping the question will be permitted as I'm trying to get input from colleagues in the video production world. I travel a lot... not only on airplanes but bumpy trucks etc. for my video work, and I ofte

  • Managing a mailing list in numbers. Duplicate Entries?

    Hi Everyone- I'm a newbie to these forums, and have done a brief search but didnt seem to find anything relevant, but if anyone can point me in the right direction, I would be most grateful. I have been using Numbers to manage a large mailing list of

  • Unknown Error while Trying to save

    Hi, I'm running Illustrator 3 on Windows Vista 32-bit. Every time I try to save a file, either with "Save" or with "Save As" Illustrator gives me an "Unknown Error Message" and does not save the file. I've found a few work arounds for it, but it is b

  • Disabling Low Rates on a WLC

    I was wondering if disabling low rates could cause issues for clients in higher density areas. For example, if I have 9 meg as the minimum allowed rate, what is actually taken under consideration for that rate? If I have a significant number of clien