How to set enconding to a textfield?

Hi!
I store the native path of a videofile into a textfield. Unfortunately German names come sometimes with “üäöÜÄÖß”.
I didn’t find a way of telling the textfield how to read the encoding utf8 properly. As a result I get a string with silly characters in it.

I appreciate any hint how to solve this problem. Thanks!

Where does the string, native path of a videofile, come from? Database? Text file? …

You need to do the following, for example from a RecordSet:

Dim s As String = rst.Field("path").StringValue.DefineEncoding(Encodings.ASCII).ConvertEncoding(Encodings.UTF8)

Replace Encodings.ASCII with the actual encoding of the data coming in from the database, the text file, etc.