German Umlauts OK in Test Environment, Question Marks (??) in production
Hi Sun Forums,
I have a simple Java application that uses JFrame for a window, a JTextArea for console output. While running my application in test mode (that is, run locally within Eclipse development environment) the software properly handles all German Umlauts in the JTextArea (also using Log4J to write the same output to file-- that too is OK). In fact, the application is flawless from this perspective.
However, when I deploy the application to multiple environments, the Umlauts are displayed as ??. Deployment is destined for Mac OS X (10.4/10.5) and Windows-based computers. (XP, Vista) with a requirement of Java 1.5 at the minimum.
On the test computer (Mac OS X 10.5), the test environment is OK, but running the application as a runnable jar, german umlauts become question marks ??. I use Jar Bundler on Mac to produce an application object, and Launch4J to build a Windows executables.
I am setting the default encoding to UTF-8 at the start of my app. Other international characters treated OK after deployment (e, a with accents). It seems to be localized to german umlaut type characters where the app fails.
I have encoded my source files as UTF-8 in Eclipse. I am having a hard time understanding what the root cause is. I suspect it is the default encoding on the computer the software is running on. If this is true, then how do I force the application to honor german umlauts?
Thanks very much,
Ryan Allaby
RA-CC.COM
J2EE/Java Developer
Edited by: RyanAllaby on Jul 10, 2009 2:50 PM
So you start with a string called "input"; where did that come from? As far as we know, it could already have been corrupted. ByteBuffer inputBuffer = ByteBuffer.wrap( input.getBytes() ); Here you convert the string to to a byte array using the default encoding. You say you've set the default to UTF-8, but how do you know it worked on the customer's machine? When we advise you not to rely on the default encoding, we don't mean you should override that system property, we mean you should always specify the encoding in your code. There's a getBytes() method that lets you do that.
CharBuffer data = utf8charset.decode( inputBuffer ); Now you decode the byte[] that you think is UTF-8, as UTF-8. If getBytes() did in fact encode the string as UTF-8, this is a wash; you just wasted a lot of time and ended up with the exact same string you started with. On the other hand, if getBytes() used something other than UTF-8, you've just created a load of garbage. ByteBuffer outputBuffer = iso88591charset.encode( data );Next you create yet another byte array, this time using the ISO-8859-1 encoding. If the string was valid to begin with, and the previous steps didn't corrupt it, there could be characters in it that can't be encoded in ISO-8859-1. Those characters will be lost.
byte[] outputData = outputBuffer.array();
return new String( outputData ); Finally, you decode the byte[] once more, this time using the default encoding. As with getBytes(), there's a String constructor that lets you specify the encoding, but it doesn't really matter. For the previous steps to have worked, the default had to be UTF-8. That means you have a byte[] that's encoded as ISO-8859-1 and you're decoding it as UTF-8. What's wrong with this picture?
This whole sequence makes no sense anyway; at best, it's a huge waste of clock cycles. It looks like you're trying to change the encoding of the string, which is impossible. No matter what platform it runs on, Java always uses the same encoding for strings. That encoding is UTF-16, but you don't really need to know that. You should only have to deal with character encodings when your app communicates with something outside itself, like a network or a file system.
What's the real problem you're trying to solve?
Similar Messages
-
German special characters not displaying on page instead of that Question marks displayed
when i submit form,i need to send a mail with filled data.Here Suppose user entered german special characters.I am getting Question marks instead of ä,Ä,ö,Ö,ü,Ü,ß. I have used meta tag like
<meta http-equiv="content-type" content="text/html;charset=utf-8" />.But i am getting fine characters with IE and Chrome.I am using FireFox 3.6.16 english.Hello core team,
Thanks a lot!!!!
i m not only the person to use html form.So many non technical persons using the same. how can i tell to all persons regarding changing character encoding. i need some permenant solution, -
Best practice for the test environment & DBA plan Activities Documents
Dears,,
In our company, we made sizing for hardware.
we have Three environments ( Test/Development , Training , Production ).
But, the test environment servers less than Production environment servers.
My question is:
How to make the best practice for the test environment?
( Is there any recommendations from Oracle related to this , any PDF files help me ............ )
Also please , Can I have a detail document regarding the DBA plan activities?
I appreciate your help and advise
Thanks
Edited by: user4520487 on Mar 3, 2009 11:08 PMFollow your build document for the same steps you used to build production.
You should know where all your code is. You can use the deployment manager to export your configurations. Export customized files from MDS. Just follow the process again, and you will have a clean instance not containing production data.
It only takes a lot of time if your client is lacking documentation or if you re not familiar with all the parts of the environment. What's 2-3 hours compared to all the issues you will run into if you copy databases or import/export schemas?
-Kevin -
German umlauts into question marks
Hi,
The problem is that the German umlauts are converted to question marks . I create a mail message (see below). After the ship in here: Outlook 2010 can be seen, the German umlauts as question marks.
Gesch?ftsf?hrer: ....
RG M?nchen ....
mailmessage obj_message
s_mapi_connector = 'SMTP:'
obj_message.notetext = struct_drucker.s_email_message
obj_message.recipient[l].address = s_mapi_connector + s_email_adress
obj_message.recipient[l].recipienttype = mailto!
obj_message.recipient[l].name = s_email_recipient
// Email per MAPI-Client
obj_session = CREATE mailSession
en_result = obj_session.mailLogon(mailNewSession!)
en_result = obj_session.mailsend(obj_message)
en_result = obj_session.mailLogoff()
DESTROY obj_session
Does anyone know a solution?
Thank You
André RustHi André,
Here is my code (also tested successfully with PB12.5.2 build 5703):
mailSession l_mailSession
mailMessage l_mailMessage
l_mailMessage.Recipient [1].Name = "[email protected]"
l_mailMessage.Recipient [1].RecipientType = mailTo!
l_mailMessage.receiptrequested=TRUE
l_mailMessage.subject = "PB E-mail example from PB 12.6 Einflußgröße Gefäßschädigung"
l_mailMessage.noteText = "Bla,~nbla, bla, ...~n"
l_mailMessage.noteText += "~n"
l_mailMessage.noteText += "Meßgröße"
l_mailMessage.noteText += "~n"
l_mailMessage.noteText += "Rückäußerung"
l_mailMessage.noteText += "~n"
l_mailMessage.noteText += "Rückstöße"
l_mailMessage.noteText += "~n"
l_mailMessage.noteText += "flächenmäßig"
l_mailMessage.noteText += "~n"
l_mailMessage.noteText += "rüstungsmäßig"
l_mailMessage.noteText += "~n"
l_mailMessage.noteText += "überläßt"
l_mailMessage.noteText += "~n"
l_mailMessage.noteText += "äußerst"
l_mailSession = CREATE mailSession
if l_mailSession.mailLogon () <> mailReturnSuccess! then
MessageBox ("E-mail error!", "Login failed!", Exclamation!)
else
if l_mailSession.mailSend (l_mailMessage) <> mailReturnSuccess! then
MessageBox ("E-mail error!", "Sending failed!", Exclamation!)
else
MessageBox ("E-mail report!", "Message sent!", Information!)
end if
end if
l_mailSession.mailLogoff ()
DESTROY l_mailSession -
My Intel iMac only shows a blinking folder with a question mark when powered up.
I did run the hardware test of the original installer disc and no trouble was found and I am out of options. Does anybody have any advice what to do nextIf the drive shows errors then repair, if after the 3rd pass of Repair Disk in Disk Utility it still shows errors it's telling you it's time to be replaced. Take it to your local Apple Store or AASP for repair, when it comes back use your backup (either Time Machine or bootable clone) to restore so you can pick up where you left off.
-
Wrong email display name with german umlauts (MS Exchange 2003)
We use 6 iPhones with Exchange 2003 and get wrong email display names with german umlauts (ä,ü,ö) - but the email-body is right.
We get special characters instead of umlauts, so the display name split into pieces. Anwering is not posipble - we get a failure-message.
We changed the standard-internet-mailformat on the exchange-server to unicode utf-8. First it works fine, after a few hours the names displays wrong again.
So we use this hotfix:
http://support.microsoft.com/?scid=kb%3Ben-us%3B916299&x=11&y=13
Same result: First it works fine, after a few hours the names displays wrong again at the iPhone.
Any ideas?Do you have commas in the display name? We used to have "Müller, Thomas" <[email protected]> and then got the split up and special characters you mention. Tests have shown that when leaving out the comma in the display name, e.g. "Thomas Müller" <[email protected]>, everything worked fine.
Guess it's a question of whether a company wants to change its naming convention for a few iPhone users...
HCD -
Howto set up proper utf-8 locales and german umlaute?
Hi there,
have some issues here and i think it has something to do with my locales... I have them since one of the last updates i think...
First problem:
In Kopete, i can send the german "umlaute" (ä, ö, ü) to others and they are sent and displayed correctly at their side... But when they send me these characters, i get only a square and a deleted next-letter-in-the-word by them. This happens with every theme and font combination in kopete. Here is an example:
Second problem:
In Konsole, the "umlaute" are correctly displayed on my folders, but in the messages i get the chars are simply deleted and not visible. This happens in the VC and in Xorg too. Here is another example:
(It should mean "Keine Handbuch Seite für pacman.conf")
My config:
I think i have configured my System properly, well at least i hope that Here are the relevant parts of my config files:
/etc/rc.conf:
LOCALE="de_DE.utf8"
KEYMAP="de"
CONSOLEFONT=
CONSOLEMAP=
/etc/profile:
export LANG="de_DE.utf8"
export LANGUAGE="de_DE.utf8"
/etc/locale.gen:
de_DE.UTF-8 UTF-8
en_US.UTF-8 UTF-8
And "locale -a" gives me:
C
POSIX
de_DE.utf8
en_US.utf8
The fonts I use:
KDE GUI: Bitstream Vera Sans (everywhere)
Y-Terminal (Konsole) Font: Bitstream Vera Sans mono
So, how can i configure a proper german utf-8? I have already searched the forums (both here and the DE one) and the wiki, but found no solution to this....
THX
FunkyouThx for the suggestions, but none of them seems to solve it...
baze:
This line was already uncommented and i have generated my locales for several times now... I have updated my post with the uncommented lines in /etc/locale.gen, just to collect all information...
Romashka:
Ok, but what if the two variables contain the same content? I mean, when i define LANG="de_DE.utf8" in /etc/profile and it is then overwritten by /etc/profile.d/lang.sh with LANG="de_DE.utf8", then this is simply the same variable defined twice with the same content... I have tried to unset the one in /etc/profile, but it did not solve it...
As for CONSOLEFONT, i had never one defined, can anyone suggest me a proper one? And the other question is: Its not working on the terminals, but it is also not working in Xorg, so is this really a CONSOLEFONT issue?
I have tried another thing and switched my locales to de_DE@euro ISO-8859-15, and with this setting the chars appear correctly... But i cannot be the only one where it does not work, i feel so excluded without UTF-8
Have also tried another terminal in Xorg... In XTerm the chars are not deleted like in Kopete or on the VC, but i see an inverted question mark instead of them... -
Arabic display as garbage & reverse question marks ¿¿¿¿¿¿
Hi,
In the Standard & Custom reports arabic is displaying as garbage. eventhough all the necessity tasks where performed like Configuring Pasta for arabic
While in pdf arabic is diplaying as garbage(junk) and in Postscript reverse question marks (¿¿¿¿¿¿)
What else i have to perform to display arabic properly.
Thanks,
Alig
Edited by: user12257829 on Apr 5, 2010 11:28 PM
Edited by: user12257829 on Apr 5, 2010 11:28 PMHi,
Even i copied AF_JRE_TOP top from $FND_TOP/rsource..
but i didn't solve the problem.
I run diagnostic test for pasta
Test details:
Generic Tests [Top]
Node Information
Tiers = Admin, Web, Forms, Concurrent
Pasta Executable Version
WARNING - Cannot determine the pasta version
ACTION - Apply the latest Pasta patch
Pasta Driver Settings [Top]
Printer Name = noprint
Printer Style = LANDSCAPE
Pasta driver name = PASTA_LANDSCAPE
Command arguments = -pn$PROFILES$.PRINTER -f$PROFILES$.FILENAME -c$PROFILES$.CONC_COPIES -l
Pasta PrintForms
Printforms feature is not used. To insert a company logo or background image in a concurrent report modify the printer driver 'PASTA_LANDSCAPE' definition in the Printer Driver form. The steps are given in the 'PASTA Users Guide 3.0' and PASTA 3.0 Release Information
Pasta Configuration File
Concurrent Node Environment Variables [Top]
NLS_LANG Variables
Database = AMERICAN_AMERICA.AR8MSWIN1256
OS environment = AMERICAN_AMERICA.AR8MSWIN1256
Concurrent Request = AMERICAN_AMERICA.AR8MSWIN1256
Pasta Environment Variables
LANG = en_US.UTF-8
PASTA =
IX_PRINTING =
IX_RENDERING =
APPLLCSP Environment Variable for Bitmap Report Printing
APPLLCSP =
Pasta Viewer Settings to View Bi-Directional Reports [Top]
Bi-Directional Mime Type
The mime type 'apps/bidi' is registered to be used with Pasta Viewer for Text
Profile Options
Viewer: Application for Text (FS_MIME_TEXT) = null
Viewer: Text (EDITOR_CHAR) = Browser
Please explain what is missing
Thanks,
Alig... -
Hi,
we are using PI/7.0 and a customer uses XI/3.0 - we have the same SWCV installed on the machines.
The solution sends mails via java-mail - not via mail adpter of XI/PI.
We are sending IDocs from R/3 to XI and the solution sends mails via java-mail to external destinations.
Our problem is now the "german umlauts".
On XI everything works fine - the attachment-file is ANSI and all german umlauts are correct.
On PI the attachment is UTF-8 and all german umlauts are 2 bytes.
I checked everything hundreds of times - and found no difference.
The only difference is the NLS-Support of the database. On both installations there is ORACLE 9.2 and on PI (that doesn't work correctly) the NLS-LANG configuration is "US" and UTF-8,
The installation on XI/3.0 (this works!) is german.germany and iso-8859-1.
Is it possible that this is out problem?
Regards
WolfgangDo you have commas in the display name? We used to have "Müller, Thomas" <[email protected]> and then got the split up and special characters you mention. Tests have shown that when leaving out the comma in the display name, e.g. "Thomas Müller" <[email protected]>, everything worked fine.
Guess it's a question of whether a company wants to change its naming convention for a few iPhone users...
HCD -
My rmi server does not show german umlaute after rebooting the linux box. It is started by a script in init.d/rc5. The script calls a C routine that really starts the server. The crazy thing is that if I remove the script from init.d/rc5 and call it manually after reboot everything is ok.
Sorry, I did not explain clearly, the server is the backend, the frontend is a swing application that is started by jnlp and communicates via rmi with the server. In the swing application there is a table filled with values coming from a database. In the database german umlaute are ok, in the swing frontend question marks and square boxes are shown after the linux box is rebooted.
-
How to type German Umlauts on an hp desktop
How do I type German umlauts with an English hp desktop keyboard?
The best way to use all kinds of non-english symbols is to go to your keyboard settings and switch your keyboard settings to international. This way you don't have to use codes for everything.
ControlPanel -> Region and Language -> Keyboards and Languages (the tab) -> Change Keyboards -> Add
Pick out "United States - International "
Here is microsoft's guide to using international characters with this keyboard setting: http://support.microsoft.com/kb/306560
You can also use the same path to switch entirely over to a german keyboard configuration, though this can be confusing if you don't have that completely memorized.
I work on behalf of HP (But this isn't my job)
Mark my post as “Accept as Solution" if you feel my post solved your issue, so that others with the same question can find the answer.
Please give me Kudos if I wrote something that helped you. -
German Umlauts in helptext displayed as rectangle
Background
Upgrading Apex from 3.2.x to 4.0.2.00.07
Problem
Apex running in German. The tests look normal ( German Umlauts looks correct)
Only customized helptext or standard help text will display the Umlauts as rectangles.
Load_de.sql was running corrctly
On Apex.oracle.com -> The issue also not reproduceable
If set: Set Screen Reader Mode On = on
it works too?
Environment
ApEx 4.0.2.00.07 on linux 64-bit on a 11.1.1.0.7 database
Client: XP SP3 IE 8
Any ideas?
Perhaps similar issues in other languages like French or so?
Thanks HendrikDid you look at the character set when you exported your application from the 3.2 environment?
Did you import it into the 4 environment using the same character set? -
Restore FARM production environment to test environment
Hello,
We have installed a two-tier SharePoint 2013 Farm (1 SQL + SP 2013 server). We have now installed two new servers with SQL and SharePoint 2013. I would like to restore the production environment to this new test environment.
What's the best way to do this:
1. Run the configuration wizard and install all service applicaties and restore the content DB's
or
2. Perform a farm backup of the production environment and restore this to the test environment.
For option 2: how do I need to prepare the new test environment?
All help and instructions are welcome.
Thanks,
Dennisi would go with 1st option, it having 100% success in my case.
Install the SharePoint and run the config wizard, make sure test farm should macth the Pord Versions( mean you need to install all updates which you did in prod).
Create the services Application, Web application, deploy the solutions if any.
then take the backup of content db, move to test Farm Sql server, then attach to web apps.
Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog -
Account with an icon of a face and a question mark
Same issue of other user in Yosemite Apple Support.
Following advises on that thread I also installed the ETRECHECK software tool, report is as follows:
Problem description:
At the login screen I find an icon with a face and a question mark in it - with a message it needs an update.
EtreCheck version: 2.1.5 (108)
Report generated 02 gennaio 2015 12:37:26 CET
Click the [Support] links for help with non-Apple products.
Click the [Details] links for more information about that line.
Click the [Adware] links for help removing adware.
Hardware Information: ℹ️
MacBook Pro (13-inch, Mid 2012) (Verified)
MacBook Pro - model: MacBookPro9,2
1 2.5 GHz Intel Core i5 CPU: 2-core
16 GB RAM Upgradeable
BANK 0/DIMM0
8 GB DDR3 1600 MHz ok
BANK 1/DIMM0
8 GB DDR3 1600 MHz ok
Bluetooth: Good - Handoff/Airdrop2 supported
Wireless: en1: 802.11 a/b/g/n
Video Information: ℹ️
Intel HD Graphics 4000
Color LCD 1280 x 800
System Software: ℹ️
OS X 10.10.1 (14B25) - Uptime: 1:22:54
Disk Information: ℹ️
APPLE HDD HTS545050A7E362 disk0 : (500,11 GB)
EFI (disk0s1) <not mounted> : 210 MB
Recovery HD (disk0s3) <not mounted> [Recovery]: 650 MB
Macintosh HD (disk1) / : 498.89 GB (467.03 GB free)
Encrypted AES-XTS Unlocked
Core Storage: disk0s2 499.25 GB Online
MATSHITADVD-R UJ-8A8
USB Information: ℹ️
Apple Inc. FaceTime HD Camera (Built-in)
Apple Computer, Inc. IR Receiver
Apple Inc. BRCM20702 Hub
Apple Inc. Bluetooth USB Host Controller
Apple Inc. Apple Internal Keyboard / Trackpad
Thunderbolt Information: ℹ️
Apple Inc. thunderbolt_bus
Gatekeeper: ℹ️
Mac App Store and identified developers
Launch Daemons: ℹ️
[loaded] com.adobe.fpsaud.plist [Support]
User Login Items: ℹ️
iTunesHelper Applicazione (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
Dropbox ApplicazioneHidden (/Applications/Dropbox.app)
Internet Plug-ins: ℹ️
FlashPlayer-10.6: Version: 16.0.0.235 - SDK 10.6 [Support]
Flash Player: Version: 16.0.0.235 - SDK 10.6 [Support]
QuickTime Plugin: Version: 7.7.3
Default Browser: Version: 600 - SDK 10.10
Safari Extensions: ℹ️
Pin It Button [Installed]
Save to Pocket [Installed]
Add To Amazon Wish List [Installed]
3rd Party Preference Panes: ℹ️
Flash Player [Support]
Time Machine: ℹ️
Time Machine not configured!
Top Processes by CPU: ℹ️
14% WindowServer
3% hidd
2% Safari
1% Dock
0% fontd
Top Processes by Memory: ℹ️
333 MB com.apple.WebKit.WebContent
155 MB mds_stores
137 MB Safari
137 MB Finder
86 MB Dropbox
Virtual Memory Information: ℹ️
7.76 GB Free RAM
4.88 GB Active RAM
3.28 GB Inactive RAM
1.26 GB Wired RAM
4.73 GB Page-ins
0 B Page-outs
Diagnostics Information: ℹ️
Jan 2, 2015, 11:15:06 AM Self test - passed
Jan 2, 2015, 12:06:57 AM /Library/Logs/DiagnosticReports/Dropbox109_2015-01-02-000657_[redacted].cpu_res ource.diag [Details]
---------- is there any troubleshooting for delete that fake account every time I start my Macbook Pro?
thanks and regards
EdoardoSmiley face with a ? means a bootable system is not found.
There maybe a problem with either system software or hard drive itself.
Try this.
Repair Disk
Steps 2 through 8
http://support.apple.com/kb/PH5836
Best. -
White Macbook has folder with a question mark inside when powered on.
My brother has a white macbook given to him from a friend and when it is powered on it shows a folder icon with a question mark in the inside flashing and it doesn't boot. He has sent me on a quest to get a power adapter and a new hard drive, He thinks the hard drive is fried. Does anyone know for sure if thats the case, I just don't want to buy all that stuff to figure out that the logic board is dead or something else irreplaceable. There is no backup disks, all I have is a replacement leopard disk from apple used for my mac mini.
If it is a retail Leopard disc--black with a giant purple X on it--then yes, you could use them, with a couple of caveats. One, it would technically be a violation of the license to use that install of Leopard on more than one computer, and terms of use on this forum forbid me from encouraging such an action. And two, depending on how old this used MacBook is, your install of Leopard may pre-date manufacture of the MacBook and, as a result, not be able to boot the MacBook anyway. However, judging by the info in your signature, that is probably not a problem.
If the disc for your Mini is gray and shipped with or was meant to ship with the Mini, then no, the disc will not work.
I still encourage you to get the system discs that came with the MacBook originally, as they have the Apple Hardware Test included, and, as I suggested above, running any OS (or other Apple software) on a Mac without the discs means technically it's an unlicensed copy.
Maybe you are looking for
-
Trouble with OR in where clause
Hello, I'm having trouble with execution speed. The problem seems to be with using OR in my where clause. Here's the meat of the function where i_pledge_number is an input parm: BEGIN SELECT /*+ INDEX (pp) */ SUM(pp.prim_pledge_amount) INTO return_am
-
Performance of the J2EE server for BI 70
Hi We currently are running BI 70 on as 20GB(memory in *BASE), 1.5 CPU (power 6) system. We have close to 100 users on the system and primarliy use the excel based Bex analyzer for reporting, We want to start using the BI-Java stack for web based rep
-
Incorrect original amt in Sales Price Basis screen of DP80
hi i'am facing the following problem 1) original amount in Sales Price Basis screen of DP80 is not same as calculated cost in service order. 2)cost calculated manually from KP26 match calculated cost in service order; hence it seems original amount i
-
Invalid Drive Error 1326 When Installing iTunes for Windows
I used to have an external usb 2.0 portable drive. It since has been uninstalled and trashed. When I tried to log into iTunes it said that some of the files are missing and to uninstall. I uninstalled from Control Panel - itunes, quicktime, ipod- the
-
My brand new 3GS iphone has stopped downloading one of my Comcast email accounts. I have talked to iPhone support and am now talking to Comcast. Nobody seems to know why or have a solution. Here are the details: Midday Friday I noticed that I wasn't