Thanks for the advice, but the name is already incorrect in my onSelectFunction 
( after .browse() ).

For debugging, I currently make Alert.show(fileRef.name).

here is my code:

                        private var _refAddFiles:FileReferenceList;

                        private function uploadTest2():void
                        {
                                _refAddFiles = new FileReferenceList();
                                _refAddFiles.addEventListener(Event.SELECT, 
onSelectFileRef);
                                _refAddFiles.browse();
                        }

                        private function onSelectFileRef(event:Event):void
                        {
                                for each(var uploadFile:Object in 
_refAddFiles.fileList)
                                {
                                        trace("selected file name: " + 
uploadFile.name);

                                        Alert.show("selected file name: " + 
uploadFile.name);
                                }
                        }

And the name in the Alert is without umlauts and incorrect. But only chrome on 
a mac, other browsers are working.

I still try to find the error. It’s even harder to find, because the flash 
debugger doesn’t work for me on chrome (mac):

https://code.google.com/p/chromium/issues/detail?id=478056 
<https://code.google.com/p/chromium/issues/detail?id=478056>

I try to comment-out all the other source-code in my project to find the issue. 
Actually, when I comment-out some css
(where I use embedded font, it works). I have no idea why. I have to debug a 
little bit more.

Btw, how do other people debug flash with Chrome on a Mac? Is it still possible?

Thanks.


> Am 02.11.2015 um 16:53 schrieb Alex Harui <[email protected]>:
> 
> 
> 
> On 11/2/15, 2:13 AM, "Marcus Fritze" <[email protected] 
> <mailto:[email protected]>> wrote:
> 
>> Hi,
>> 
>> actually I have a serious problem with FileReferenceList in Google Chrome
>> on (every) Mac.
>> 
>> When I try to upload files with FileReferenceList in my flex application,
>> the file names are not correct. Umlauts (ä, ö, ü) and other special
>> characters (å) are not correctly „parsed“.
>> 
>> For example, when I upload
>> 
>> Test_äöü.pdf
>> 
>> my flex application recognizes the file name
>> 
>> Test_aou.pdf
>> 
>> So, when I create a new test-project, were I use FileReferenceList and
>> try to test this issue, this error doesn’t occur. So I think it must be
>> related to my generated project. I have no idea, what I can do.
>> 
>> Any help?
> 
> I think you can use a network monitor to see what is sent.  Maybe that
> will help you determine when the umlauts are stripped off.
> 
> HTH,
> -Alex

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to