Is there any way to store character in MS access without being changed?

1 view (last 30 days)
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 Comment
Walter Roberson
Walter Roberson on 7 May 2017
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

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 7 May 2017
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.
  4 Comments
Aspire
Aspire on 10 May 2017
Edited: Walter Roberson on 10 May 2017
State is in Hex
State = {'F7' 'B5' 'FA' 'C0';
'88' '46' '51' 'C3';
'38' 'F7' 'CD' '7B';
'92' 'D9' '2D' '9C'}
X=[];
[m,n]=size(State);
for i=1:m
for j=1:n
X(i,j)= hex2dec(State(i,j));
end
end
X;
X=char(X);
reshapeX = reshape(X,1,16)
size(reshapeX);
can u please help.
I used uint8 after Char(X) and got same result without uint8 '÷8µF÷ÙúQÍ-ÀÃ{' but after retriving from access char(26) appears i.e '÷8µF÷ÙúQÍ-ÀÃ{'

Sign in to comment.

Categories

Find more on Characters and Strings in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!