Only english file name allowed in xaml?
Last post 05-02-2008 11:42 AM by jamlew. 1 replies.
Sort Posts:
05-02-2008 7:00 AM
Only english file name allowed in xaml?

Hi, 

Is that true that the image file in a xaml file shall be in english? I use VS2008/silverlight 2. Here is the code.

 <?xml version="1.0" encoding="utf-8" ?>

<Canvas    xmlns="http://schemas.microsoft.com/client/2007"
                   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

<Canvas >
    <Image  Height="130" Width="300" Source="Images/AAA.png" Stretch="Fill"/>
   </Canvas>

<TextBlock Width="100" Height="36" Canvas.Top="200" Text="BBB" />

</Canvs>

Here are the results,

1.if AAA.png  is replaced by an english file name, it works.

2.if AAA.png is replaced by an english file name and BBB is replaced by chinese characters, it works too.

3.if AAA.png replaced by a chinese file name, it doesn't work.

4. for case 3, it works in Expression Blend 2.5.

 Is there a way to fix the case 3?

regards,

 schoolbus-

schoolbus

Joined on 05-02-2008
Posts 1
05-02-2008 11:42 AM
Marked as Answer
Re: Only english file name allowed in xaml?

Unfortunately, currently the tool used to create the XAP can't handle content files with Unicode characters in file names.  This is partly due to varying support for Unicode in various operating systems.  For instance, if a user on XP didn't have East Asian text support installed, the file name would end up mangled when they were trying to load your Silverligth Application.

 We are looking into how to resolve this issue, but I don't know when it will be fixed.

---------
If this post has solved your problem, please select 'Mark as answer'

SDET, Microsoft Web Developer team

jamlew

Joined on 09-21-2007
Bellevue, WA
Posts 116