Android : Problems with accents and ñ
I have the problem that somewhere when i save my textfield the accents
disapear and don't get saved to de bd.
Exemple :
entrance : " la meva ocupació és x " What the bd saves : "la meva ocupaci"
i think i may fail in some of these parts:
when i pick the data from the textfield:
title = (EditText)findViewById(R.id.title);
when i convert it to string :
String post_title = title.getText().toString();
when i put it on the list:
List params = new ArrayList(); params.add(new BasicNameValuePair("title",
post_title));
Full code : http://pastebin.com/trrPEG33
inb4: When i do an insert on the bd it takes accents with no problems
inb4: When i recive data from the bd this data contains the accents and
they are shown perfectly
i think the problem may be on the save .
i'll be really gratefull on any help. Sorry for my english.
No comments:
Post a Comment