Input text with non-English characters

4 views
Skip to first unread message

omrigez

unread,
May 16, 2008, 5:51:48 AM5/16/08
to SWFObject
I have a flash movie that has input text box. When exporting it on the
local machine and also when embedding it without swfobject I can input
non-English characters with no problem. When using SWFobject the
english characters look just fine but the non-English ones display
strange characters not related to what I input. Any Ideas?

Aran Rhee

unread,
May 16, 2008, 8:27:55 PM5/16/08
to swfo...@googlegroups.com
So you are saying that when you place your files on the live server using
the standard <object> / <embed> method, that it all works, yet it doesn't
when using SWFObject?

If this is the case, I find it EXTREMELY bizarre, as SWFObject is just
writing the same code for you as <object> / <embed> would at the end of the
day.

My guess is that you don't have the right character set defined on your HTML
page (or the right chars embedded / defined in your flash file) for
displaying the non-english chars.

More here:

http://www.w3.org/International/O-HTTP-charset
http://www.w3.org/International/O-charset.en.php

etc


Aran

omrigez

unread,
May 17, 2008, 10:29:33 AM5/17/08
to SWFObject
So in that case it's extremely bizarre because when I put the same
movie twice on the same page, one embedded with SWFobject and one with
the 'normal' method (just drag and drop from the library of
dreamweaver), the problem is there. i.e. with the 'normal' method it
works just fine, whilst with the SWFObject the non-English characters
display strange symbols not related to what I input.

For the SWFObject this is the code I used:

swfobject.embedSWF("Text Editor.swf", "textEditorTest", "550", "400",
"6.0.0", false, {}, {wmode:"transparent"}, {});



For the 'normal' method I used (was generated automatically by
dreamweaver) :

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/
swflash.cab#version=7,0,19,0" width="510" height="250">
<param name="movie" value="Text Editor.swf" />
<param name="quality" value="high" />
<embed src="Text Editor.swf" quality="high" pluginspage="http://
www.macromedia.com/go/getflashplayer" type="application/x-shockwave-
flash" width="510" height="250"></embed>
</object>

Omrigez


On May 17, 3:27 am, "Aran Rhee" <aran.r...@gmail.com> wrote:
> So you are saying that when you place your files on the live server using
> the standard <object> / <embed> method, that it all works, yet it doesn't
> when using SWFObject?
>
> If this is the case, I find it EXTREMELY bizarre, as SWFObject is just
> writing the same code for you as <object> / <embed> would at the end of the
> day.
>
> My guess is that you don't have the right character set defined on your HTML
> page (or the right chars embedded / defined in your flash file) for
> displaying the non-english chars.
>
> More here:
>
> http://www.w3.org/International/O-HTTP-charsethttp://www.w3.org/International/O-charset.en.php

Rostislav Hristov

unread,
May 17, 2008, 10:31:52 AM5/17/08
to swfo...@googlegroups.com
{wmode:"transparent"} opens the door for various dirty issues like this one.

--
Asual - Open software that pushes the limits
http://www.asual.com/

omrigez

unread,
May 17, 2008, 11:16:56 AM5/17/08
to SWFObject
Removing the transparent background did the work. But now I was
surprisingly left with un-transparent background. Any bypass for this?

On May 17, 5:31 pm, "Rostislav Hristov" <rostislav.hris...@gmail.com>
wrote:
> >>http://www.w3.org/International/O-HTTP-charsethttp://www.w3.org/Inter...

Aran Rhee

unread,
May 17, 2008, 10:31:53 PM5/17/08
to swfo...@googlegroups.com
@Rostislav - good pick up. I had not noticed the wmode code. Macromedia
never should have exposed wmode=transparent as a rendering option, as it has
caused so many issues. I am now looking forward to developers misusing /
misunderstanding the new wmode=direct and wmode=gpu rendering modes in Flash
10 player ...

@ omrigez - No unfortunately. Wmode=transparent as Rostislav said opens up
all sorts of issues. Do you REALLY need to see the content behind the flash
file? You can potentially put the same BG image within your flash file to
make it seem as if it were transparent.

omrigez

unread,
May 18, 2008, 2:13:58 AM5/18/08
to SWFObject
That's what I would probably do. I'll put similar background to the
SWF.

Thanks,
Omrigez
Reply all
Reply to author
Forward
0 new messages