Results 1 to 2 of 2
  1. #1
    BaldPlumber is offline Novice
    Windows 8 Access 2013
    Join Date
    Oct 2015
    Posts
    9

    Problems with pasting non latin characters into recordset field

    Hi

    I am having a problem with an access/VBA application that has to be written with the forms controls displayed in either English or Thai.

    I have a simple language translation table that contains details if the form name, the control name and the English and Thai captions that are loaded depending on whether the user is a Thai or English speaker.

    I can populate this table relatively quickly and easily just by using google translate and pasting the Thai equivalent caption into the appropriate field.

    The problem is that for an odd language like Thai, it pretty much defies all attempts by google translate to come up with anything that makes one iota of sense, unless the caption is just a single word.

    So, I thought I would make like easier for the users of the system to be able to update the global translation fields via a popup form that loads the existing definitions for all controls for any given form and also loads just the English captions for those that are missing definitions, in order to allow the users to make sure that the translated form actually makes sense.

    This all works fine if they are using a thai keyboard but I have noticed that if I try and paste a string of Thai characters into a field it causes a carriage return. No amount of trimming is so far able to remove this. Worse, I can't even see what the character is as my watch window seems to be lacking the view hexadecimal option.

    I can remove the CR from the definitions table later, bu this is very annoying to have to do.

    This wouldn't be a problem for a Thai user as they are hardly going to use translate to provide thai definitions, but for me, developing the thing it i a quick and easy way of coming up with something.



    I have attached a screen shot which probably explains what I am trying to do better than I have done so far.

    I'd be grateful for any advice.

    Thanks
    Mike
    Attached Thumbnails Attached Thumbnails translate.PNG  

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    before you save the changes use Fieldname = trim(fieldname) for every field on your form that has a value, that should remove any 'invisible' characters like a carriage return, line feed, etc.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Displaying non ASCII characters in a recordset
    By toothpaste in forum Programming
    Replies: 3
    Last Post: 02-06-2017, 02:57 AM
  2. Replies: 5
    Last Post: 03-30-2014, 04:12 PM
  3. Looking for characters that cause problems
    By Ruegen in forum Programming
    Replies: 11
    Last Post: 01-30-2014, 11:28 PM
  4. Storing ISO Latin-1 Characters in Access
    By n2xlr8n in forum Access
    Replies: 1
    Last Post: 05-06-2011, 06:36 PM
  5. Auto set field when pasting
    By resullivan in forum Programming
    Replies: 1
    Last Post: 01-11-2010, 01:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums