Character Encodings when using Streams for Text

hi there,
i have a table with a key column (ordinary varchar) and a text column (memo field in ms access, connection is done via the jdbc2odbc bridge). if i read the stuff with ResultSet.getAsciiStream() everything is fine, i.e., printing the resulting strings looks ok. then i use this method to read it and write it into a second table with the same structure but using PreparedStatement.setCharacterStream(). now i read from the second table using ResultSet.getCharacterStream() and print the strings. but now they seem garbled. something with the text conversion must have gone wrong. i never set any character encoding so the encodings should all be default.
any ideas?
robert

Can you confirm that the data has been stored to the
second table correctly?
Ie, is it getCharacterStream or setCharacterStream
that's causing the problems?that's difficult to answer: if i use the access interface to look into both tables they look alike. especially the target table looks ok.
but if i read the data with getCharacterStream() i get something that looks as if this had happened: during storing with setCharacterStream() for every character there seem to be two bytes stored in the table. after reading the output looks like every second character was ok and every other character seems garbled. so it looks like on reading not two bytes in the database made a character but only one so every second byte becomes crap.
unfortunately there is neither method in Reader that allows for setting the encoding nor is there a variant of getCharacterStream() that accepts an encoding parameter. (the same holds for setCharacterStream(); plus, if i create a StringReader there is no way to set the encoding.)
do you have still any ideas?
robert

Similar Messages

  • When using Facetime or texting...

    When using Facetime or texting, do you have to have internet?

    Correct.
    iPod touch: Requires Internet for texting and FaceTime.
    iPhone: Requires Internet OR 3G connection for texting and FaceTime.
    iPad: Requires Internet OR 3G connection for texting and FaceTime.
    Mac: Requires Internet for FaceTime (no texting app as far as I know).

  • When using stream clip to covert m2t files  its says mpeg2 playback component is not installed is it included fcpx

    when using stream clip to covert m2t files  its says mpeg2 playback component is not installed is it included fcpx

    You need to purchase for MPEG Streamclip's full functionality.
    Russ

  • Mac user, PS CC 2014 latest version. When using "Save for Web" I bring my 900 x600px @72 ppi in to SFW and the output becomes 300ppi. The only way it stays at 72ppi is if I check "none" for metadata. I know to should not matter much, but I would prefer to

    Mac user, PS CC 2014 latest version. When using "Save for Web" I bring my 900 x600px @72 ppi in to SFW and the output becomes 300ppi. The only way it stays at 72ppi is if I check "none" for metadata. I know to should not matter much, but I would prefer to keep all my web jpgs @ 72ppi. Any solutions?

    It opens up as 900x600 @300ppi
    Here's a screenshot-

  • How stop PS6 from removing the DPI value from an image when using "save for the web"?

    How stop PS6 from removing the DPI-value from an image when using "save for the web"?
    Example:
    - Open a tif image, that contains a dpi value (resolution).
    - Use the splice tool in PS6.
    - Export the slices with "Save for web", as gif-files.
    Then the dpi value is removed, the gif files has no dpi value (it's empty).
    How can we stop PS6 from removing the dpi value when using "save for web"?
    OR:
    When using the slice tool, how can we save the sliced pieces without PS removing the dpi value?

    you can make your art go a little bit over the bounds. or you can make sure your artboart and art edges align to pixels

  • Pages-when using template for envelopes can you import names/address from address book

    When using templates for envelopes can you import names/address from the address book?

    Drag the VCard from Address Book onto the open envelope template.
    If you want mutiple addresses make a Group of those in Address Book and drag the Group icon onto the Pages template.
    Peter

  • Is it possible to ignore "Rigid relationships between attributes cannot be changed" when using ProcessUpdate for Dimension?

    As per the title is it possible to ignore "Rigid relationships between attributes cannot be changed" when using ProcessUpdate for Dimension?
    We have a case where very rarely an item might have been miscategorised so the brand is manually changed.  We want this dimension to be rigid to speed up ProcessUpdate.
    We do a ProcessFull each night, so it will get corrected then, but during the hourly updates we would just like to ignore this error if possible?

    Hello,
    The rigid relationship should be defined when the members will not change over time. Here are some threads regarding rigid relationship for your reference, please see:
    Processing OLAP Cube: http://social.technet.microsoft.com/Forums/sqlserver/en-US/17a55593-9543-404e-a579-0a011965585d/processing-olap-cube?forum=sqlanalysisservices
    Flexible and rigid relationship: http://social.msdn.microsoft.com/Forums/sqlserver/en-US/2d8f5443-065d-4485-9385-6f0b5fa417da/flexible-and-rigid-relationship?forum=sqlanalysisservices
    If you have any feedback on our support, please click
    here.
    Regards,
    Elvis Long
    TechNet Community Support

  • What is a valid location for autorecovery files when using Word for MAC?

    What is a valid location for autorecovery files when using Word for MAC?

    Microsoft Word for Mac support forums is probably a better place to ask.

  • HT4864 My outgoing email as stopped working when using Outlook for mac 2011. Any suggestions?

    My outgoing email as stopped working when using Outlook for mac 2011. I have deleted and reinstalled the account twice. I have 11 gig free on my iCloud account. The outgoing server is set at smtp.mail.me.com using port 587. If I was able to reinstall the account, I am positive I have the correct password. I can log into my iCloud accout using the same credentials.
    Any suggestions?

    I called Microsoft to fix my problem...for those maybe having the same issue, I was told by the Tech to use this outgoing server setting - p06-smtp.mail.me.com
    All is working fine since doing so.

  • When using imovie for Ipad, how can I fast forward a project to cut the length down?

    When using imovie for Ipad, how can I fast forward a project to cut the length down to fit under the 15 minutes required for Youtube? My current project is 23 minutes, and need to cut it down below 15 minutes. I was hoping to speed up the video. The content would actually be better viewed in at a faster speed anyhow.

    Jon,
    It sounds like you did, just as you should, Save_As and Delete everything that is unwanted. If you did the Deletion from the Timeline, there should be nothing from the old Project, that should be included. A DVD is Transcoded and burned from the Timeline. If the Assets are not there, they will not included in the DVD, even if you did not Delete anything from the Project Panel.
    Tell us about the Clips now on your Timeline. Also, can you check the Timeline, by hitting the \ (Backslash key), and looking near the end of the Timeline. Do you have any "orphans" out there? Check all Video Tracks, even if you have to scroll to see them all. Does the Duration of the Timeline (viewed in the Program Monitor) match what you think that it should? If not, then you most likely have orphans, that you missed Deleteing.
    Good luck,
    Hunt

  • I bought some ringtones and alerts from itunes and it won't let me use them for text alerts or voicemail.

    I bought some ringtones and alerts from itunes and it won't let me use them for text alerts or voicemail. Am I doing something wrong? Other ringtones I have downloaded work.

    What does won't let you use them mean exactly?

  • I am unable to get a bullited list when using the synchronized text feature.

    I am unable to get a bullited list when using the synchronized text feature. The option is greyed out and not active. Any tips? Am I doing something wrong?

    This is by default , synchronized text does not alter any style and other visual attributes associated with instance.
    Thanks,
    Sanjit

  • How to perform a character protect when using include text in Script form?

    In my main window I have code as below:
    INCLUDE &GS_EKKO-EBELN& OBJECT EKKO ID F19 LANGUAGE EN
    INCLUDE &GS_EKKO-EBELN& OBJECT EKKO ID F19 LANGUAGE ZH
    There is nothing wrong with language zh but...
    For English,Every word at the end of line was splited
    EG:In text,It should be "I hate Sap script"
    But it is "I hate sap scr
                 ipt"
    I noticed that there is a protect in character which is used to prevent this,But text included is a command so I can't give them a character format.In default paragraph format there is only "para protect" which can't protect word but paragraph...
    I don't want to code in abap because I have static text and included long text appear alternatively,if coding,I will use so many text element one by one to loop the tdlines...
    So,If anyone can help me?
    Thanks~

    Thanks but
    If append tdlines...It would be
    /e Text element1
    xxxxxxxxxx
    /e tdlines1
    loop tdlines
    /e text element2
    xxxxxxx
    /e tdlines2
    loop tdlines
    /e text element3
    xxxxxx
    /e tdlines3
    loop tdlines
    Too many text element....
    Is there any other solution...?

  • No mnemonic or focus when using HTML for a components text

    When using HTML to set the text for a JLabel, JRadioButton or JCheckBox; mnemonics are never displayed and the outline depicting focus is never painted. Any ideas why? Any way of fixing this? Is it a known bug?
    JRadioButton radio1 = new JRadioButton( "<html>This is a test!</html>" );
    radio1.setMnemonic( KeyEvent.VK_T );
    radio1.setDisplayedMnemonicIndex( 8 );Thanks in advance,
    Jamie

    The accuracy of this response may vary depending on the look and feel you're using.
    The JRadioButton and, by virtue of being a subclass, JCheckBox are painted by the look and feel class. Those classes behave differently for HTML text. If the text property is HTML, that is there is a javax.swing.text.View that is responsible for rendering the text there is not even a call to paintFocus so the focus is never painted.
    Also, if there is no text the focus is not painted. This will happen if you create a JRadioButton with no String argument and use a separate JLabel with setLabelFor(Component) to associate it with the JRadioButton. The actual guts of the radio button never ever seems to show any indication of focus under any circumstances.
    I can only assume this is deliberate (rather than a bug) since there's fairly deliberate non-calling of methods and no provision for the focus indicator to be painted when there's no text associated with the JRadioButton or JCheckBox.

  • Anyone notice character count when using foreign letters?

    Character count is typically 160 max when typing SMS, EXCEPT if you use one of the international keyboards (which I use a lot). I was just typing in Portuguese, and the character count dropped to 70 max. I had been writing to a Brazilian friend and she says my messages are getting chopped up, probably because of this limitation. Anyone else have this problem and/or know if there's anything I can do about it?

    SMSs using foreign characters use UTF-8 (8-bit) text encoding, rather than Latin character SMS which use ASCII (7-bit) text encoding.
    It's not a problem as such, and applies to all phones. It's just a limitation of the encoding used for foreign characters. Foreign characters simply use up more space.
    There's nothing you can do about it.
    See here for more info: http://www.mediaburst.co.uk/blog/the-gsm-character-set/

Maybe you are looking for