enconding UTF8 and??

marcomilazzo

Member
Licensed User
Longtime User
enconding UTF8 and?? and bluetooth

Hi
I have a bluetooth pulseoximeter connected to my pc

TextReader1.Initialize2(Serial1.InputStream,"ISO-8859-1")
I'm using the timer to read the string

Dim str1 As String
Dim str2 As String

If TextReader1.Ready Then
str1 = TextReader1.Readline
i0 = str1.Length
i1= str1.IndexOf("P")

str2 = str1.SubString2(i1,i1+10) .????????????
txtLog.Text = str1
end if
when i try to ecxtrat the chars i need with str2 = str1.S...... the the softwrw crasches loosing the connection

Thank's for any help
marco
 

Attachments

  • ser3.zip
    1.5 KB · Views: 272
Upvote 0

marcomilazzo

Member
Licensed User
Longtime User
enconding UTF8 and??

i found the solution.!!
If i0 > 20 Then str3 = str1.SubString2(i1,i1+10)

there was no error message!
thank's anyway

btw
the compiler shoud have a "Save as"
ciao
and what about an ffmpeg library!!
ciao
 
Upvote 0

marcomilazzo

Member
Licensed User
Longtime User
Hi
the character ® will give me -82 instead of decimal 174

it's clearly a signed byte 256 - 82 = 174

i tried also the ascii enconding and i get 26

.. Data = str2.GetBytes("ISO-8859-1" )

isn't there and extended asii encoding table?

thank's
marco
 
Upvote 0
Top