Professional Web Applications Themes

[New in Java] cannot println french or spanish character... - Mac Programming

I use : System.out.println("Le résultat est " + valeur); When I try to print a result (in French) I get a strange character (white question mark on black square... funny) .... I know the value is a number ;-)) but ;-)) I cannot either enter (é è ç..) French characters in my Terminal, what should I modify ? thanks the answer "move to english" is not accepted of course .......

  1. #1

    Default [New in Java] cannot println french or spanish character...


    I use : System.out.println("Le résultat est " + valeur);

    When I try to print a result (in French) I get a strange character
    (white question mark on black square... funny)
    .... I know the value is a number ;-)) but ;-))

    I cannot either enter (é è ç..) French characters in my Terminal, what
    should I modify ? thanks

    the answer "move to english" is not accepted of course ....
    erwan Guest

  2. #2

    Default Re: [New in Java] cannot println french or spanish character...

    On Tue, 8 Jul 2003, erwan wrote:
    >
    > I use : System.out.println("Le résultat est " + valeur);
    >
    > When I try to print a result (in French) I get a strange character
    > (white question mark on black square... funny)
    > ... I know the value is a number ;-)) but ;-))
    >
    > I cannot either enter (é è ç..) French characters in my Terminal, what
    > should I modify ? thanks
    >
    > the answer "move to english" is not accepted of course ....
    >
    What is your terminal encoding? You might want to try UTF8. Your java
    source files should also be UTF8 IIRC.

    Fred

    Frederick Cheung Guest

  3. #3

    Default Re: [New in Java] cannot println french or spanish character...

    In article
    <Pine.LNX.4.44.0307082023290.15121-100000kern.srcf.societies.cam.ac.uk>,
    Frederick Cheung <fglc2srcf.DUH.ucam.org> wrote:
    > On Tue, 8 Jul 2003, erwan wrote:
    >
    > >
    > > I use : System.out.println("Le résultat est " + valeur);
    > >
    > > When I try to print a result (in French) I get a strange character
    > > (white question mark on black square... funny)
    > > ... I know the value is a number ;-)) but ;-))
    > >
    > > I cannot either enter (é è ç..) French characters in my Terminal, what
    > > should I modify ? thanks
    > >
    > > the answer "move to english" is not accepted of course ....
    > >
    > What is your terminal encoding? You might want to try UTF8. Your java
    > source files should also be UTF8 IIRC.
    >
    > Fred
    >
    java source files are UTF8 , but how can I check (or change) the
    Terminal encoding ?
    erwan Guest

  4. #4

    Default Re: [New in Java] cannot println french or spanish character...

    On Wed, 9 Jul 2003, erwan wrote:
    > In article
    > <Pine.LNX.4.44.0307082023290.15121-100000kern.srcf.societies.cam.ac.uk>,
    > Frederick Cheung <fglc2srcf.DUH.ucam.org> wrote:
    >
    > > On Tue, 8 Jul 2003, erwan wrote:
    > >
    > > >
    > > > I use : System.out.println("Le résultat est " + valeur);
    > > >
    > > > When I try to print a result (in French) I get a strange character
    > > > (white question mark on black square... funny)
    > > > ... I know the value is a number ;-)) but ;-))
    > > >
    > > > I cannot either enter (é è ç..) French characters in my Terminal, what
    > > > should I modify ? thanks
    > > >
    > > > the answer "move to english" is not accepted of course ....
    > > >
    > > What is your terminal encoding? You might want to try UTF8. Your java
    > > source files should also be UTF8 IIRC.
    > >
    > > Fred
    > >
    >
    > java source files are UTF8 , but how can I check (or change) the
    > Terminal encoding ?
    >
    "Window Settings" in the Terminal menu.

    France

    Frederick Cheung Guest

  5. #5

    Default Re: [New in Java] cannot println french or spanish character...

    In article
    <Pine.LNX.4.44.0307091153220.17640-100000kern.srcf.societies.cam.ac.uk>,
    Frederick Cheung <fglc2srcf.DUH.ucam.org> wrote:
    > On Wed, 9 Jul 2003, erwan wrote:
    >
    > > In article
    > > <Pine.LNX.4.44.0307082023290.15121-100000kern.srcf.societies.cam.ac.uk>,
    > > Frederick Cheung <fglc2srcf.DUH.ucam.org> wrote:
    > >
    > > > On Tue, 8 Jul 2003, erwan wrote:
    > > >
    > > > >
    > > > > I use : System.out.println("Le résultat est " + valeur);
    > > > >
    > > > > When I try to print a result (in French) I get a strange character
    > > > > (white question mark on black square... funny)
    > > > > ... I know the value is a number ;-)) but ;-))
    > > > >
    > > > > I cannot either enter (é è ç..) French characters in my Terminal, what
    > > > > should I modify ? thanks
    > > > >
    > > > > the answer "move to english" is not accepted of course ....
    > > > >
    > > > What is your terminal encoding? You might want to try UTF8. Your java
    > > > source files should also be UTF8 IIRC.
    > > >
    > > > Fred
    > > >
    > >
    > > java source files are UTF8 , but how can I check (or change) the
    > > Terminal encoding ?
    > >
    > "Window Settings" in the Terminal menu.
    >
    Thanks got it... display in Mac OS Roman
    so it means that if I send a printl command in UTF8 format and I have a
    UTF8 display format in my Terminal it won't display the correct
    character ?
    >
    erwan Guest

  6. #6

    Default Re: [New in Java] cannot println french or spanish character...

    On Fri, 11 Jul 2003, erwan wrote:
    > In article
    > <Pine.LNX.4.44.0307091153220.17640-100000kern.srcf.societies.cam.ac.uk>,
    > Frederick Cheung <fglc2srcf.DUH.ucam.org> wrote:
    >
    > > On Wed, 9 Jul 2003, erwan wrote:
    > >
    > > > In article
    > > > <Pine.LNX.4.44.0307082023290.15121-100000kern.srcf.societies.cam.ac.uk>,
    > > > Frederick Cheung <fglc2srcf.DUH.ucam.org> wrote:
    > > >
    > > > > On Tue, 8 Jul 2003, erwan wrote:
    > > > >
    > > > > >
    > > > > > I use : System.out.println("Le résultat est " + valeur);
    > > > > >
    > > > > > When I try to print a result (in French) I get a strange character
    > > > > > (white question mark on black square... funny)
    > > > > > ... I know the value is a number ;-)) but ;-))
    > > > > >
    > > > > > I cannot either enter (é è ç..) French characters in my Terminal, what
    > > > > > should I modify ? thanks
    > > > > >
    > > > > > the answer "move to english" is not accepted of course ....
    > > > > >
    > > > > What is your terminal encoding? You might want to try UTF8. Your java
    > > > > source files should also be UTF8 IIRC.
    > > > >
    > > > > Fred
    > > > >
    > > >
    > > > java source files are UTF8 , but how can I check (or change) the
    > > > Terminal encoding ?
    > > >
    > > "Window Settings" in the Terminal menu.
    > >
    > Thanks got it... display in Mac OS Roman
    > so it means that if I send a printl command in UTF8 format and I have a
    > UTF8 display format in my Terminal it won't display the correct
    > character ?
    > >
    I 've never used this myself, but i woudldn't expect UTF 8 characters to
    be displayed correctly if the terminal is expecting Mac OS Roman.

    Fred

    Frederick Cheung Guest

Similar Threads

  1. French character and MySQL
    By lg2 in forum Coldfusion Database Access
    Replies: 1
    Last Post: January 10th, 04:29 AM
  2. InDesign ME Character Problem! Character-Change by Printing or saving *.PS!
    By gree@adobeforums.com in forum Adobe Indesign Windows
    Replies: 48
    Last Post: May 25th, 02:07 PM
  3. Encoding problem (french character) in txt file on Mac OS X
    By Thierry Santacana in forum PHP Development
    Replies: 0
    Last Post: September 11th, 05:08 AM
  4. System.out.println from java stored procedure
    By efiryago@profitlogic.com in forum IBM DB2
    Replies: 0
    Last Post: August 5th, 06:56 PM
  5. insert french character to db2
    By Sherman Lau in forum IBM DB2
    Replies: 5
    Last Post: July 9th, 05:25 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139