MS Access and Unicode (UTF8?)

Hi --
I've been able to insert Arabic data into an MS Access table programmatically,
using SQL and the \u notation. For example:
insert into MY_TABLE values ('\u0663'); // arabic character
Then, I can read this data out using ResultSet's getCharacterStream method. The data comes back out fine, and can be displayed in a simple JTextField as Arabic.
(This required opening the database connection using the "charSet = "UTF8" property in the call to DriverManager's getConnection method.)
My problem is that I have another Access table in which the data was entered manually -- having set the Control Panel Regional setting to Arabic, and using the MS Office Tool language Arabic. The data looks fine in the Access GUI (the Arabic characters show up as Arabic).
However, when I read the data using the same method in the first example, I get back question marks. I guess there's something different about the way the data was encoded? I read that Access stores all character data as Unicode, but I'm not sure if that implies a particular encoding (such as UTF8) or not.
Is there any way to figure out how the manually-entered data is encoded?
Or is there something else I'm doing wrong?
Thanks for any help.
-J

However, when I read the data using the same method
in the first example, I get back question marks. I
guess there's something different about the way the
data was encoded? I read that Access stores all
character data as Unicode, but I'm not sure if that
implies a particular encoding (such as UTF8) or not.
Is there any way to figure out how the
manually-entered data is encoded?
Please see the article here: http://office.microsoft.com/en-us/assistance/HP052604161033.aspx
It suggests that Access stores data in UTF-16 or UTF-8 depending on whether a "Unicode Comression" feature is selected. So, I'd say you should try retrieving data from the other db as UTF-16.
Regards,
John O'Conner

Similar Messages

  • Access and Field Blob

    I'm trying to retrieve data from Blob Field (in DB Access) and save the value in a file, but the size of extracted file is double of Blob content.
    I try to use class inputstream outputstream readers and writers, but it does not work
    Why??
    Urgent !!!!

    Readers and writers use Unicode characters, which have two bytes per character. I believe InputStream and OutputStream use only single bytes- have you tried this? Remember to use the same types for both writing and reading.

  • Chinese characters or else with a driver db2 z-os Unicode (UTF8)

    Post Author: fred_181061
    CA Forum: Desktop Intelligence Reporting
    Hi,
    Is there anybody use or test this driver with a database DB2 z-os and tablespace declared in Unicode UTF8 ?
    I notice that this driver is not supported by Business Objects.
    Interface succeeded on html viewer (deski 3 tier)
    Interface not succeeded on java (webi) or deski 2 tier
    Thanks for your answer and best regards

    I am also not an expert and haven't used DB/2 on z/OS but am using it on OS/400. I think your DBA is confused.
    From what I have experienced setting commit control to CS causes more locking than RS. From what I can determine (which has been through trial and error so it may not be totally accurate) CS causes the database to exclusive lock all records in the cursor while RS will use shared locks. I do know from painful experience that if you set all your transactions to CS you will experience frequent update problems due to record locks.  We had to go through and set everything to RS and, once we did, our concurrency problems were nearly eliminated. There are some instances that you have to use *CS, however, such as when a stored procedure returns a cursor, but the compiler will tell you about this.
    Another thing that doesn't make sense is locks are typically implemented as data structures in memory and do not require much if any processor time. I don't know the specifics of DB/2 implementation but Oracle uses simple semaphores, so I would assume IBM does, too.
    Also, from my experience, there appears to be no way around DB/2 locking. Having come from an Oracle background I find the amount of locking DB/2 does totally frustrating. It's not as bad as SQL Server but can become problematic at times. That is just my $.02 anyway.

  • Unicode-UTF8-Support for MaxDB?

    Hello,
    according to general information MaxDB just supports UTF16. If one is
    facing the decision to migrate an Oracle 9.2 Non-Unicode-DB to either a Unicode-UTF16-MaxDB or a Unicode-UTF8-Oracle-DB, the answer probably would be to go for a Unicode-UTF8-Oracle-DB because the SAN costs used should be app. half of the MaxDB-SAN-costs.
    Is UTF8-Support soon ready for MaxDB?
    Thanks for your reply.
    br
    Chris

    Hi Chris,
    yeah, that note needs a small change (UTF-16 changed into USC-2).
    Indeed, a 2TB DB under UTF-8 needs about 3TB under USC-2. So yes, one would need more space for MaxDB, but the TCO is not only dependent on the cost of the SAN. Easy admin, being reorganisation free are only a few of the examples which can drastically lower the TCO of a system. That added to the low cost of the MaxDB software itself <i><b>can</b></i> make a difference.
    Because of other topics, which I cannot go into and currently have a higher priority, the UTF-8 support is planned long-term.
    I'm not sure if this is allowed, but this (german) article is quite an interesting read:
    <a href="http://www.computerwoche.de/produkte_technik/storage/581295/">http://www.computerwoche.de/produkte_technik/storage/581295/</a>
    With the Unicode / ASCII mixture I just meant that for example a Unicode WebAS contains ASCII data aswell. Another example: in MDM there's an explicit distinction between the ASCII and UNICODE data. Our interfaces support all three (ASCII, UTF-8 and UCS-2).
    Regards,
    Roland

  • Microsoft Access with Unicode

    Hi,
    I recently upgraded my website from CF5 to CF9 running on a virtual server. Below are the specs.
    CF Version: 9,0,0,251028
    Edition: Enterprise
    Operating System: Windows Server 2008
    My old code worked fine except that certain queries were running slow. My hosting provider suggested that I change the driver from "Microsoft Access" to "Microsoft Access with Unicode." As suggested, it did make things much faster. However, there were some pages on my site that didn't work. I did some research and found I had used two "reserved" words for table names that caused the pages to fail when using "Microsoft Access with Unicode" as the driver. Oddly enough, the pages worked fine with the regular "Microsoft Access" driver.
    I am now down to just one error left that I cannot resolve. I get the following error ONLY when using the "Microsoft Access with Unicode" driver.
    Error Executing Database Query.
    Query Of Queries runtime error.
    The select column reference [GetList.ItemNo] is not found in table [GetList].
    This is the code it is referring to.
    <!--- Use QofQ to join queried records against cart data --->
    <CFQUERY NAME="GetProducts" DBTYPE="query">
      SELECT
      GetList.ItemNo AS ItemNo,
      GetList.Item AS Item,
      GetList.Grades AS Grades,
      GetList.Price AS Price,
      GetList.OrderQty AS Quantity,
      (GetList.OrderQty * GetList.Price) AS ProductSubTotal
      FROM GetList
    </CFQUERY>
    Is there an issue with "Microsoft Access with Unicode" not playing nicely with Query Of Queries?
    I would greatly appreciate any help with this issue.
    Thanks,
    Steve

    THANK YOU!  THANK YOU!  THANK YOU!
    I never noticed that I had included the column "ItemNo" more than once (as you can see below). I removed the extra and it worked perfectly!
    Thanks again!
    Steve
    <cfquery name="GetList"
    DATASOURCE="#request.ds#"
    USERNAME="#request.dsuser#"
    PASSWORD="#request.dspass#">
    SELECT
    o.OrderID,
    o.OrderDate,
    o.ShipState,
    o.ShipCountry,
    o.TaxExempt,
    o.PromotionalCode,
    oi.ItemNo,
    oi.OrderQty,
    oi.Price,
    p.ItemNo,
    p.Item,
    p.Grades 
    FROM Orders o,
    OrdersItems oi,
    Products p
    WHERE o.OrderID = #ATTRIBUTES.OrderID#
    AND oi.OrderID = o.OrderID
    AND p.ItemNo = oi.ItemNo  
    </cfquery>

  • What is diff in Open SQl and Unicode

    Hi.
    What is difference in Open SQl and Unicode.
    What are advantages of Unicode ?

    hi osk,
    <b>u cant compare open sql with unicode as both are different..</b>
    just a small explanation..
    <b>Open SQL</b> consists of a set of ABAP statements that perform operations on the central database in the R/3 System. The results of the operations and any error messages are independent of the database system in use. Open SQL thus provides a uniform syntax and semantics for all of the database systems supported by SAP. ABAP programs that only use Open SQL statements will work in any R/3 System, regardless of the database system in use. Open SQL statements can only work with database tables that have been created in the ABAP Dictionary
    <b>unicode</b>
    Data types such as CHAR ASCII and CHAR EBCDIC are mainly suited to English and central European languages. With other character sets, a code attribute is usually used for these data types. This code attribute uses a different presentation code to ASCII and EBCDIC, even for internal storage in the database system. This causes problems if you want to access these database systems using a different character set, or if you want to exchange data between database systems with different character sets.
    You can avoid these problems by using internal character coding in accordance with UNICODE. Internally, the UNICODE data is stored in UTF-16/UCS-2 format. In UTF-16/UCS-2 format, all characters are two bytes long.
    SAP DB is able to display various presentation codes in UNICODE format
    <b>please close the thread after rewarding the appropriate points...</b>
    Message was edited by: Ashok Kumar Prithiviraj

  • Unicode/UTF8 Compliance

              How to implement a Internationalization code in Unicode/UTF8 Compliance using java, jsp.
              

    It is possible. Please don't expect that a complete answer could be posted
              in a newsgroup message. See the Servlet and JSP specifications and API
              documentation to determine how to obtain and specify encoding information.
              Cameron Purdy
              Tangosol, Inc.
              http://www.tangosol.com
              +1.617.623.5782
              WebLogic Consulting Available
              "Roger" <[email protected]> wrote in message
              news:3a19b2b1$[email protected]..
              >
              > How to implement a Internationalization code in Unicode/UTF8 Compliance
              using java, jsp.
              >
              

  • Unicode UTF8

    Hello all,
    we are using SAP R/3 Enterprise 4.7 wit database Oracle 9.2.x.
    Begin of this year we have migrated to Unicode UTF8..
    Due to serveal purposes we are planning to migrate to MaxDB next year.
    Our current Oracle-DB size is about 250 GB.  ( plus  QAS  +  DEV ).
    Big tables are for e.g.
    GLPCA (data: 16 GB,  index: 9 GB), PPOIX (data:10 GB, index: 12 GB),
    COEP   (data:8 GB, index 3 GB),     RFBLG (data: 7 GB, index: 0,5 GB).
    Now my questions:
    1) I have read a SAP document with message:
        migrate to MaxDB with UTF16  means additionally disk space ( 40 - 60 % )
        Is this more or less realistic ?  (  I heard up to 100 % )
    2) I read the new features of MaxDB 7.7. There is a kernel parameter
        "useunicodecolumncompression = YES"
         the system uses UTF8 for Unicode, except for key columns
         Does this means that indexes will migrate to UTF16 and data to UTF8 ?
         So the totally increasing will be about 20 - 30 % ?
    3)   MaxDB  8.0  can use  UTF8.
          When the realease time,  approximately ?
    Thanks for your answers in advance.
    Regards, Reinhard

    Hello Reinhard
    Customers reported that the size of Oracle DBs might be larger than the same data in a MaxDB (see e.g. <a href="http://maxdb.sap.com/events/MaxDB_Infoday_2007/K1_2007_MaxDB%20in%20der%20GESIS-Systemlandschaft.pdf">GESIS-Systemlandschaft.pdf</a>). This could balance your demands a bit.
    ad 1)
    Of course, the numbers depend on the data. The given 40-60% are expectations.
    ad 2)
    I would answer the question with yes. However, how do you come up with 20-30%? Is there an index on every second Unicode character column?
    ad 3)
    Neither I know nor I can answer anything about 8.0.
    Regards Thomas

  • I have a late 2012 iMac running osx 10.8.5.  I keep losing access to my internal hard drive.  I can reboot and regain access and it will last for a few minutes or hours.  Disk utility does not seems to help.

    I have a late 2012 iMac with an I5 precessor running OSX 10.8.5 and a 1tb internal hard drive.  I keep losing access to the internal hard drive/startup disk.
    I can reboot and everything operates as normal for a few minutes or hours but then I lose all access again to anything on the hard drive.  The computer is still up and running but no files can be accessed and certain websites cannot be acessed even though internet access appears to be normal.  Disk utility can only find permission errors related to iTunes which can be repaired only to come back at the next scan (I would not think permission errors would have anything to do with the hard drive crashing).  It does not seem to matter what program I am using at the time access is lost and it can lose access sometimes right after reboot when no program is running.

    You will need to boot into the Recovery Volume (command - R on a restart or hold down the option/alt key during restart and select it) to run Disk Utility/Disk Repair.

  • MS Access And Forms

    I m working on a project where i was first having oracle as database but due to customer requirement he want ACCESS
    But i dont know how to connect to access and forms
    PLS HELp
    Its Urgent

    Sumit,
    Forms 9i and above no longer support ODBC conenctions to Access.
    Frank

  • I transferred files from a NAS server to the Mac Mini Snow Leopard Server and now some of the files have Custom Access and can't  be opened by some users.  How do I fix this?

    We're setting up our Mac Mini Snow Leopard Server, and in the process transferred files that had been stored and accessed from our Blackarmor NAS server over to the Mac.  These files were all created on PC's and are Office Excel files, WordPerfect files or PDF's.  When you look at the files on the Mac from the Mac and bring up Get Info for the affected file, it says that the file has Custom Access.  The files that work properly don't have that configuration.  I can access and open the files on some computers, but some users can't open the files from their computer even though they can see it.  We're all using PC's and they get the Error:  Access Denied-Contact your administrator--or something similar.  I've seen on the web similar issues and it may have something to do with ACL permissions.  I don't know enough about Mac OS to understand this, but what is baffling is that they can be opened from some PC's but not others, and all of the Users have the same accessibility to the files.  Thanks for a solution!!

    Oh, on the losing Internet, try this...
    Make a New Location, Using network locations in Mac OS X ...
    http://support.apple.com/kb/HT2712
    10.7 & 10.8…
    System Preferences>Network, top of window>Locations>Edit Locations, little plus icon, give it a name.
    10.5.x/10.6.x/10.7.x instructions...
    System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
    The interface that connects to the Internet should be dragged to the top of the list.
    Instead of joining your Network from the list, click the WiFi icon at the top, and click join other network. Fill in everything as needed.
    For 10.5/10.6, System Preferences>Network, unlock the lock if need be, highlight the Interface you use to connect to Internet, click on the advanced button, click on the DNS tab, click on the little plus icon, then add these numbers...
    208.67.222.222
    208.67.220.220
    Click OK.
    PS. Your English is quite good & completely understandable.

  • Setting Opportunity Access and Contact Access to null in Account Team

    Hi,
    We can set the the Opportunity Access and Contact Access to blank/null manually in the application but is it possible to set these to blank using import?
    Thanks,
    Teena

    Hi,
    Thanks for the reply. We have tried updating a record through Account Team > Import > Overwrite Existing Records where the Contact Access and Opportunity Access fields were blank. The import was successfull but the fields were not updated, they are still set to Full access. We used the Account EUID in the import file.
    Regards,
    Teena

  • I changed apple Id but old Id was to an email I can't access and now I can't change apple I'd in I phone

    I changed apple I'd to new email on line and when I went to change I'd in phone it still has old I'd with email I can no longer access and I don't remember old password. How can I reset set it in icloud with new I'd?

    You need to call Apple at 1800myapple or check your rescue email.

  • Account access and permissions issue

    When I try to synch my iPod, I am informed that I will lose my purchased music because my computer is not authorized. When I attempt to authorize the account in iTunes, I get an error stating that the required file is not found or permissions error. My apple account is easily accessed and can be used for purchases, but not for synching. I have tried deauthorizing my second computer and have checked for permissions errors, but can find none. I asked this question in the iPod section with no answers--it would appear to be a system problem rather than an iPod issue. Thanks for any ideas on how to solve this puzzle.

    One of the following articles should help you:
    iTunes- Missing folder or incorrect permissions may prevent authorization
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases

  • Can you access and store two itunes libraries on one computer?

    can you access and store two itunes libraries on one computer?

    Welcome to the Apple Community.
    Yes but you may run into issues if you want them both to run iTunes Match or automatic downloads.

Maybe you are looking for

  • How can I connect my Apple TV and Airport Express to the rest of the network for the least lag?

    Hey guys, I have an Airport network here in the office.  All new Airport Extremes.  The internet comes into one, which then connects to our switches, which then connects to other Airport Extremes over ethernet.  Everything is setup to create its own

  • Apps do not update

    For about a week, when I get a notice of update available for an app...upon entering App Store for update...nothing happens.  I have rebooted the Ippad and rebooted the wireless router. Nothing changes.  All other functions at App Store work, includi

  • Distribution of GOA in srm

    Hi When we try to distribute contracts with services from SRM to R/3 system . we are getting the error as "Error in number allocation for service items (NRO : BBP_SRV)". How to resolve this issue. Regards Ashish

  • Sd_mod, sr_mod: which kernel options?

    Hello all, I just started fiddling around with compiling my own kernel because I'm not satisfied with the performance/latency of my desktop system. I thought it would be a good thing to start with http://wiki.archlinux.org/index.php/Kernel_Compilatio

  • Procedure Guidance Required

    Hi all, Can I write a procedure in oracle which check the data in external table or flat file and insert the required data into internal oracle table. Please Guide me in this regard it is urgent.