Is there any way to store character in MS access without being changed?
조회 수: 1 (최근 30일)
이전 댓글 표시
I am trying to store encrypted data in ms access but characters afters 128 change
eg. 'Ö¤crÉòaqÆrõ~C' is sent to access which is received as 'Ö¤crÉòaqÆrõ~C' missing or converted symbols.
is there any way to retrieve text without being changed.
댓글 수: 1
Walter Roberson
2017년 5월 7일
Your posting contains unprintable characters. Using HTML entity notation, your source string is
Ö¤crÉòaqƒÆrõ~’C
and the received string is
Ö¤crÉòaqÆrõ~C
답변 (1개)
Walter Roberson
2017년 5월 7일
This appears to be a limitation in using unicode text in some versions of MS Access. See for example https://social.msdn.microsoft.com/Forums/en-US/5e129981-58af-4891-979f-cf31e3fdaaca/inserting-unicode-characters-into-an-ms-access-database?forum=adodotnetdataproviders
The characters that are failing are getting turned into char(26), which is the character that is returned if a source character cannot be translated into the target character set; see for more discussion
You could try a native2unicode() with UTF-8 specified, and unicode2native() on the way back. This would give you variable length byte arrays to be stored, by the way.
But really, you should just switch to storing byte arrays.
참고 항목
카테고리
Help Center 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!