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

1 Ansicht (letzte 30 Tage)
Aspire
Aspire am 7 Mai 2017
Kommentiert: Walter Roberson am 10 Mai 2017
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 Kommentar
Walter Roberson
Walter Roberson am 7 Mai 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

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Walter Roberson
Walter Roberson am 7 Mai 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 Kommentare
Aspire
Aspire am 10 Mai 2017
Bearbeitet: Walter Roberson am 10 Mai 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Í-ÀÃ{'

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Characters and Strings finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by