Error loading file with special character (using www)

Hello,
I need to load some texture dynamically, but sometimes it contains special character (“é” for example, we are french).

I am using this code where s is the path

s = s.Replace("/","\\");
string path = "file://"+s;
WWW www = new WWW( path);
yield return www;
if (www.error != null)
{
	Debug.LogWarning(www.error);
	yield return true;
}
else
{
	tmp = new Texture2D (1, 1);
	www.LoadImageIntoTexture (tmp);
///... do something...
	yield return true;
}

if my filename contains “é” for example, I have the error :

Is anyone has an idea?

Thanks.

OK I solved my problem.
When I load the file I replace the special char with the UTF-8 char corresponding.

Hello, I am facing exactly the same problem. Could you please share your code solution, please?

The linked web page shows exactly what you need to do. It shows a lookup table that maps the illegal characters to their URL-encoded strings.

for the record : for localized environments with languages containing other characters than those belonging to ASCII ‘high codes’ table for which there are defined urlencode counterparts at http://www.w3schools.com/tags/ref_urlencode.asp it is not enough to replace just chars based on that table

For reading from filesystem path containing localized characters I ended up using

System.Web.HttpUtility.UrlEncode

with

Encoding.GetEncoding("windows-1250"))

(windows standalone build)

but replacing only those characters not included in the base ASCII table.
Whole UrlEncoded string representing the path ( inlcuding slashes… ) didn’t work

inclusion of System.Web.dll required full .NET profile

EDIT: the above works only on the editor, not in the build itself

for actual build to work I had to intuitively reference all I18N* assemblies as well