Umlaut in text
John Slaats
Hi all,I'm using customize to read a file and write a journalvoucher.
But when I write a tekst that contains umlauts it does not display correct in SBO.
I read the file and display the tekst in a SAP window. It displays correctly.
Then I write to a journalvoucher and the tekst displays incorrect.
oJV.JournalEntries.Lines.Linememo = "Betrag für Kosten"
Does not display correctly in SBO.
Kind regards,
John
John Slaats
Hi,I found the problem/sollution.
When reading the file don't forget the encoding.
Not:
Dim fs As New IO.FileStream(oDatei, IO.FileMode.Open, IO.FileAccess.Read)
Dim sreader As New IO.StreamReader(fs)
but:
Dim fs As New IO.FileStream(oDatei, IO.FileMode.Open, IO.FileAccess.Read)
Dim sreader As New IO.StreamReader(fs, System.Text.Encoding.Default)
Kind regards,
John
Paolo Manfrin
Thanks for sharing the solution John.Cheers
paolo
0
Please sign in to leave a comment.
Comments
0 comments