Michel, the quotes above were generated from an end user (me) operating the + button on the WebFileUploader running in their browser. So the quotes above came from the WebFileUploader’s FileAdded event. Nothing was added to the file list using code in my project.
WebFileUploader1.FileAtIndex(0) returns a string.
[quote=200608:@Eric Wilson]Michel, the quotes above were generated from an end user (me) operating the + button on the WebFileUploader running in their browser. So the quotes above came from the WebFileUploader’s FileAdded event. Nothing was added to the file list using code in my project.
WebFileUploader1.FileAtIndex(0)
The code I posted comes from the project you attached to the bug report. It does add a row to the picture list.
Whatever. This is your project. Be well.
The project inside Feedback was provided by Xojo and replicated the ToText issue with the filename I supplied, so I didn’t bother posting my own project. I very much appreciated your help though Michel – the ConvertEncodings example you gave helped me find a solution.
Never be afraid to post your code or project. That is the best way to have a solution rapidly. I am glad what I posted helped, though 
[quote=200602:@Eric Wilson]Michel, you are correct it is at type conversion issue, however Text type is required for the New Framework’s WebHTTPSocket URL/QueryString which doesn’t accept strings.
I have now written the following workaround to convert from string to text with user code to solve this problem:
Dim mbClassic As New Global.MemoryBlock(len(WebFileUpLoader1.FileAtIndex(0)))
mbClassic = WebFileUpLoader1.FileAtIndex(0)
Dim mbXojo As New Xojo.Core.MemoryBlock(mbClassic,mbClassic.Size )
dim txtFilename as Text = Xojo.Core.TextEncoding.UTF8.ConvertDataToText(mbXojo)
msgbox txtFilename
Seems to work fine.
Apostrophe left in tact but assumes browser uses UTF8.
That’s what I love about Xojo, you can always do low-level stuff yourself if you need to.[/quote]
I’ve only skimmed this thread, but couldn’t you do this if the problem is that the string has a Nil encoding:
Dim txtFileName As Text = WebFileUpLoader1.FileAtIndex(0).DefineEncoding(Encodings.UTF8).ToText
Thanks Joe,
That code works and is much easier too.
Eric