JDK1.3 + Tomcat  and International Characters-- Working!

I am involved with a project that has people using a "command/ prompt" based system to enter data. Lets assume this is a simple java program that uses system.out. The data they are entering uses international characters such as the � character.and others. Now that the data was captured I wanted to display the data through JSP on a webpage. When doing so I ran into a problem where the � where translated into ?. Thus started the journey
After much research, and alot of trial and error I came up with the following Test JSP that finally works
---- copy / past this to file and type it out from a windows command prompt ---
<%@page contentType="text/html; charset=Cp1252" %>
<% String test = "���������"; %>
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=CP437">
</HEAD>
<BODY>
TEST: XX <%=test%> XX
</BODY>
</HTML>
When you do this you will see ��������� for the test string. By the way if you use Visual Slick you will see the characters properly as apposed to lets say note pad.
Putting this file in a jsp and runing it under tomcat 4.01 you will see the expected result mainly:
TEST: XX ��������� XX
As you can see though by the file the character set the jsp is set to use is cp1252 but the meta tag uses cp437.
which gives the desired effect of properly printing the characters as I would have hoped.
So here is my question:
Am I correct in assuming that the windows command prompt uses CP1252 as a character set (there for any dos / non-windows tool uses the same thing) and that Windows graphical ie notepad, and webpages uses CP437.
Since this seems to be correct. Is this the right way of doing this? Seems a bit hard coded. I have not tried this on UNIX or a unix based text browser but I suspect this will not work on them. What is the correct way to do this?
Thanks
Mike..

Wow, that seems like a sticky little issue to have overcome. I can offer you no better way to do it, but can wish you luck in your future endeavors!!!!

Similar Messages

  • Messenger and international characters

    I posted this earlier this month on the blackberryforums.com and crackberry.com web sites but didn't really get a answer. Hopefully it will have a better outcome here 
    Hi, we switched from the 7250 to the 8330 model (what an upgrade!). I have a question though regarding the 83xx messenger, I can't get international characters to work (by holding the key and moving the trackball). It works in other application (like while sending an email or in the address book) but not in messenger. We did not have that problem with the 7250 model.
    Is this a known issue/limitation? My firmware version is 4.3.0.124 and my carrier is Telus.
    Thanks.

    Hello,
    I just joined this community, and of course I started my search for this same issue.
    After spending more than 4 hours with Tech Support from my Carrier, then going to the Carrier's Store and wasting 2 more hours, then back to the phone with the carriers tech support this time with a spanish speaking cust. svc. agent, this issue is still unresolved, I think, and everyone else who tried to help as well, that this is a GLITCH in Blackberry's phones, I have a Curve 8330, and a Storm, and they both do not allow you to type international characters in SMS ....GRRRRRRRR! yes it works in everything else except there.
    I tried the new Tour at the store and it does allow the international characters in SMS messages, but of course they wanted me to dig into my pocked to pay for the difference.
    I think we should all come together and write something to Blackberry and let them know that we need this fixed, it's aggravating having to compensate through apologies and typing extra characters just to be able to communicate in a different language with these phones.
    I think that these Smart Phones, are not so smart after all....LOL

  • XMLTYPE and International Characters

    Database: Oracle9i
    Characterset: US7ASCII
    I am trying to insert a very small xml document into an XMLTYPE column in a table.
    My xml document, however, contains international characters like French and Spanish letters with their accompanying accent marks.
    I have tried setting various encoding schemes in the encoding attribute on the xml document but none of them work.
    The parser stops at the first international character and complains that it is invalid.
    Is there anything I can do to insert these characters into my XMLTYPE column without complaint?
    Thanks.

    Please post this message at:
    Forums Home » Oracle Technology Network (OTN) » Products » Database » XML DB

  • Ovi and international characters

    Hi,
    I started using Ovi sync services due to the end of Goosync free services. Ovi works great, except for international characters (I write in Spanish). I tried changing the way my browser displays text but it seems that the problem is in the synchronization itself ¿Does anyone have a workaround for this?
    Thanks in advance
    Enrique S.
    Santiago, Chile

    Please post this message at:
    Forums Home » Oracle Technology Network (OTN) » Products » Database » XML DB

  • Tomcat and EJB will work?

    Author: kirankumar_j Feb 6, 2004 9:19 AM
    Please let me know whether we can write EJBs in Tomcat and execute in the project?
    I am new to EJBs.
    Kiran

    Hi Kiran,
    Tomcat alone is just a Web Server as mentioned in the previous post.
    Go for App Servers like Jboss-Tomcat, Weblogic or Websphere.
    Seetesh

  • MobileMe Gallery and international characters

    (May this serve as a warning to others.)
    I recently had trouble posting some vacation photos to a Gallery. My initial organization included a roll named Málaga (that's an accent on the first 'a'; it's a city in Spain). Later I organized other albums but the files' pathnames still contain the accented letter.
    Posting an album to a MobileMe Gallery resulted in the error:
    "An error occurred with the publication of album "[whatever]." Request to the server failed".
    There were no errors listed in my Console logs.
    I've found Apple warnings about having punctuation marks in photos and videos but this isn't quite the same issue.
    The problem was very stubborn and I didn't realize the cause until I created another iPhoto Library and happened to use different names for rolls, etc.
    A bug report has been filed.
    ...Neil

    Neil:
    Using non standard asci characters in site names has always been a problem. Thanks for the heads up. Here's some information I've gleamed from the iWeb forum regarding site/page names:
    Renaming a website or webpage
    You can rename a site or page at any time by double-clicking its name in the site organizer and typing the new name.
    The page name appears at the top of the visitor's browser.
    The site name is included in the website's address (URL):
    http://web.mac.com/your account name/ or
    http://web.me.com/your account name/
    Renamed pages and sites (as well as the site's URL) change online the next time you publish.
    IMPORTANT: If you rename a site, previously created links to your site won't work; be sure to notify your visitors, especially your blog or podcast subscribers.
    iWeb now converts spaces in site names to "_". Also avoid non-Roman characters; many get converted to numbers when you publish.
    Other characters that aren't recommended for use in website names are: forward and backward slashes (/ \), brackets ([ ]), tilde (~), exclamation point !, question mark (?), "at" sign (@), number sign (#), dollar sign ($), ampersand (&), asterisk (*), colon (:), equal sign (=), comma (,), and double quotation marks ("). Using these characters may result in names with strange numbers in them.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    Note: There now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

  • Testing fonts and international characters

    Font1 Font2 Font3
    áöüóőúéáűí
    Testing many forums, disregard.

    One more test for the team.
    The internet and the is a pretty big place :) Hope this fits.

  • International characters not showing up in certain apps?

    I'm using Dreamweaver CS3 and international characters aren't showing up. There are blank spaces where they used to be. The characters are still there, it's just that they appear as blank spaces (I can copy and paste them and see them elsewhere).
    This change occurred after I installed 10.6. Is there any way to fix this?

    I've seen the same thing on Photoshop and Fireworks CS3, and even just the other day on iMovie '09, but I was still on Leopard – so are you sure it's Snow Leopard-related?
    In my case, CS3 apps would show squares, and iMovie wouldn't even move the cursor (it wouldn't even let me enter curly quotes). With iMovie it was easily fixed by typing in TextEdit, then copying and pasting to iMovie. No success in CS3 apps, which categorically refused to enter any glyphs that weren't more or less standard Latin.

  • I am getting problem with internal table & work area declaration.

    I am working with 'makt' table ..with the table makt i need to work with styles attributes ..so i declared like this
    TYPES : BEGIN OF ty_makt,
             matnr TYPE makt-matnr,
             spras TYPE makt-spras,
             maktx TYPE makt-maktx,
             maktg TYPE makt-maktg,
             celltab TYPE lvc_t_styl,
           END OF ty_makt.
    DATA : i_makt TYPE TABLE OF ty_makt.
    DATA : wa_makt TYPE ty_makt .
        But end of program i need to update dbtable "makt"...i am getting problem with internal table & work area declaration.
    i think makt table fields mapping and internal table/work area mapping is not correct. so please help me to get out from this.

    Hi Nagasankar,
    TYPES : BEGIN OF TY_MATNR,
                  MATNR TYPE MAKT-MATNR,
                  SPRAS TYPE MAKT-SPRAS,
                  MAKTX TYPE MAKT-MAKTX,
                  MAKTX TYPE MAKT-MAKTG,
                  CELLTAB TYPE LVC_T_STYL,  " Its Working perfectly fine..
                 END OF TY_MAKT.
    DATA: IT_MAKT TYPE STANDARD TABLE OF TY_MAKT,
              WA_MAKT TYPE TY_MAKT.
    Its working perfectly fine. if still you are facing any issue post your complete code.
    Thanks,
    Sandeep

  • Configuring tomcat and apache on the same system

    i need to configure tomcat and apache on the same system.
    first i have configured apache and it is working well.
    Next is have configured tomcat and it is working well.
    i need to interlink tomcat and apache. so i downloaded jk connector and i have configured it.
    i gave an entry in the httpd.conf as
    Include /tomcat/conf/auto/mod_jk.conf
    i have copied the file mod_jk.so to /usr/local/apache/libexec/
    went i start apache after the entry is given it gives the error like this
    cannot load /usr/local/apache/libexec/mod_jk.so into server: ld_so.1. /usr/local/apache/bin/httpd: fatal : libgcc_s.so.1 : openfailed : no such file or directory in linux
    please help to configure this.
    i have done every thing as it is in apache.org documentation. please give the complete configuration. some say that tomcat is not compiled according to apache1.3. but i configure jk connector as --with-apxs=/usr/local/apache/bin/apxs
    send me the reply
    thankqs in advance

    Hi,
    I'm working in a linux machine and choose to use also two different users. Of course I'm using two different ORACLE_HOME directories.I think that the best approach.Just a question ,are you keeping the "GROUP" same or different?
    Anand

  • Tomcat, Oracle 9i and Chinese Characters

    Dear Group,
    we are using an application based on oracle 9i and tomcat 5.0. I copied the "ojdbc14.jar" and "nls_charset12.jar" to my common/lib directory of Tomcat.
    The application works fine until I insert chinese characters via the web form from our app. If I insert the chinese characters directly with the oracle enterprise console, it works.
    NLS_NCHAR_CHARACTERSET is AL16UTF16
    Any idea?
    Thanks in advance
    Ray

    Are you inserting the Chinese characters into a VARCHAR2 column or into an NVARCHAR2 column?
    What is your NLS_CHARACTERSET?
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Internal Mic and Bluetooth not working together at the same time

    Okay.. so I've been noticing this happen alot lately. Whenever I have my usb wacom tablet plugged in (which is almost always), there would be no internal mic input and bluetooth would become "not unavailable". Also, even when I try an external mic, there was no input. Could this be a coincidence or some related usb-bluetooth problem? Could it be my audio input or tablet driver problem?
    I've used my mic to skype before I had installed the tablet. Also before I used garage band to record my sister's guitar with an external mic, there was no problem at all, and of course I didn't have my tablet plugged in at the time. Recorded a whole hours worth of music, and didn't have any problems.
    Today.. I checked to see if my internal mic was working before I launched skype, and it was working perfectly, and I also noticed my bluetooth was available (didn't test it though). Then I went on skype talked to friend for about 20min, and suddenly the audio stop working. I had my tablet plugged in from earlier today. I restarted my macbook (with no tablet plugged in) and still mic input isn't working. I tried and external mic, but still nothing. I tried uninstalling skype, still nothing.
    This is not the first time this happened, I noticed it would somehow fix itself after a few days every time, and mic and bluetooth would start working again out of nowhere. Which makes it even more weird.
    Need help pleaseee!
    PS. I tried getting someone to fix it before(a few months ago- I don't really use my mic or bluetooth much), but when I brought it in and started up my mac, at that time it was working again. But now it isn't working =(

    UPDATE: I just noticed my bluetooth was no longer "unavailable", so I quickly went into system preferences, and noticed that my internal mic input had some input! Very weak though, only 1-2 bars. So what does this mean?

  • Headphone Jack doesn't work and internal speakers are stuck in mute.

    So I have an 18' macbook pro with a 2GHz Intel Core i7 and running version Mac OS X (10.7.5). I recently dropped my computer off my lap while my headphones were still in. The headphone jack smashed into the computers headphone output jack I took out the headphones and they still work but now no matter what pair of headphones I use I cannot hear anything when plugged in. As well when I take out the headphones the sound output does not switch back to internal speakers but says Digital Out. I know the speakers work because when I was messing the out jack because I read when a red light is on inside the jack (which it goes on and off) means it is stuck in mute. That however has not worked so far and neither has putting in and taking out the headphone jack.

    Use OnyX to clean your system and User cache files. It's free to download. Just click on the "Automation" tab, check the boxes and run it.
    Dave M.
    MacOSG Founder/Ambassador  An Apple User Group  iTunes: MacOSG Podcast
    Creator of 'Mac611 - Mobile Mac Support' (designed exclusively for an iPhone/iPod touch)

  • Facetime between iPad2 and MacBook Air worked fine here in the USA.  The iPad2 is now in Rome, Italy and we can't connect internationally.  We both can hear the caller ringing in, but after accepting the call we cannot connect.  No voice, no video.

    Facetime between iPad2 and MacBook Air worked fine here in the USA.  The iPad2 is now in Rome, Italy and we can't connect internationally.  We both can hear the caller ringing in and can see who is trying to call, but after accepting the call we cannot connect.  No voice, no video. iPad is successfully sending and receiving eMails, but no Factime connection   What's up?

    I am curious if possibly the hotel has some sort of VOIP block on.  Have you tried Skype?  Did you talk to the hotel staff?  My husband is traveling to Milan in a couple of days and I wonder if he will run into the same issue.  He has had no problems from Istanbul but he is staying in a corporate apartment there.  If you find an answer please post back.  Thanks

  • International characters and mod_plsql

    We are having troubles with mod_plsql translating international characters.
    Here is the scenario:
    We have an HTML form whereby the user can enter a letter.
    If they enter the letter 'X', by the time it calls the ACTION in the
    html form, it has changed it from 'X' to '&_Oslash' (I have inserted an
    underscore character for demonstration purposes).
    The ACTION in the HTML form is a plsql procedure which does nothing more
    than display the character the user entered. It "visually" displays the
    X character because the browser knows how to interpret the &_Oslash,
    however the "real" character should have been 'X' since we want to store
    this character in the UTF8 database. We need to store the 'X' character
    in order to search on it (you can't search on &_Oslash).
    Any help on this would be appreciated. We only have thousands of hotels internationally,
    it would be nice to use other languages besides english.
    Sun OS 5.8
    9ias 1.0.2.2.0
    mod_plsql 3.0.9.8.3b
    rdbms 8.1.7.3.0
    NLS_CHARACTERSET=UTF8 (and NLS_NCHAR_CHARACTERSET)
    NLS_LANGUAGE=AMERICAN
    owa_util plsql toolkit 3.0.0.0.5
    Thanks, Kate

    I'm picking up the IP address but I also want to pick up the name the username and the %u doesn't seem to be capturing the mod_plsql login name.
    Jeremy.

Maybe you are looking for

  • How do I improve performance with exchange

    My corporate email is on an exchange 2010 server. Mail.app works with the server but there are a number of performance problems when sending and receiving, which are also well documented in other discussion threads. I have tried every suggested confi

  • How to add a route for a specific interface

    HI, i want to make a direct link beetween 2 computers (ubuntu and solaris) with a cross over cable. solaris : e1000g0 (192.168.0.212= normal network) e1000g1 (172.18.0.2 = network for interconnection beetween ubuntu and solaris routing table: Destina

  • Transfer playlist to new ipod

    I have just replaced my ipod mini with a new one following battery problems. My playlist won't transfer to the new ipod mini. Can anyone tell me what I can do about this as I have a new ipod with no songs on it? Many thanks to any one who can help

  • Cant open 'Show view options' under View

    Hi, I'm having a small problem with Leopard, for some reason I cant open 'Show view options' under 'View' on the menu bar. I've already tried to verify and repair the disk permissions which didn't fix it, Is there any other way I can get it to work w

  • [Solved] Openproj looks strange in the awesome WM

    Hi Community, I just installed openproj from the AUR. But when I run it in the awesome WM, I found the background of the application looked nearly blank, which made openproj impossible to edit in. It looks strange. So, openproj cannot be run from the