borni69
-
Content Count
54 -
Joined
-
Last visited
Posts posted by borni69
-
-
E-K ble
This line above have two characters I would like to remove in start
see attached image
Not sure if this make any sense to you...
String : E-K ble
bytes : 0b 0b 45 2d 4b 20 62 6c 65
How can I programaticly remove all character not utf8, if it make sense to say it that way.
If I run this code
procedure TForm1.Button1Click(Sender: TObject);
var
I: integer;begin
edit1.Text:='E-K ble';
edit2.Text:='';
for I := 1 to length(edit1.Text) do
begin
edit2.Text := edit2.Text + (ord(edit1.Text) ).ToString+' - ';
end;
end;
I get this result...
11 - 11 - 69 - 45 - 75 - 32 - 98 - 108 - 101 -
I guess I could remove the 11, but will all no utf8 be 11 ???
B
-
-
Hei,
how can I remove non-utf8 characters from a utf8 string.
Any examples
Thanks
B
Remove non-utf8 characters from a utf8 string
in Algorithms, Data Structures and Class Design
Posted
Thanks , I think I understand your what you say..
And I am not sure after this discussion what my spec is.
But our problem is.
We have a html text box on an Angular webclient that people add text to, and after the text is added this text is posted to the server, using a webbroker ISAPI backend.
Sometimes they copy text from word / email etc, and then we get characters we dont want.. I am not sure what they are, we like to keep linbreak tabs ect, but not this character showing as a ? or a as seen in above image.
Not sure if this question make sense.
b