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

1 vue (au cours des 30 derniers jours)
Aspire
Aspire le 7 Mai 2017
Commenté : Walter Roberson le 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 commentaire
Walter Roberson
Walter Roberson le 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

Connectez-vous pour commenter.

Réponses (1)

Walter Roberson
Walter Roberson le 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 commentaires
Aspire
Aspire le 10 Mai 2017
Modifié(e) : Walter Roberson le 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Í-ÀÃ{'

Connectez-vous pour commenter.

Catégories

En savoir plus sur Characters and Strings dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by