Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-03-2005, 07:12 PM
Member
 
Join Date: May 2004
Posts: 78
Default Special characters

I have a program that allows people to customise my quiz game.

The user types in their questions, and then the I use SWFGen to add the questions to a new game file.

I've found a problem though - whilst special characters (e.g. é â ä à å ç and so on) can be entered into the input text boxes, when I generate the new swf. they simply don't appear, showing a square box instead.

Is there any way I can make this work? It seems when I generate a file using SWFGen, it 'loses' the special characters.

I think this has something to do with SWFGen...
__________________
:)
Reply With Quote
  #2 (permalink)  
Old 02-04-2005, 07:56 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Special characters

Are you working with swfgen 2.0r12? It supports special characters. We've just made a game with chinese questions and answers using your application.
Reply With Quote
  #3 (permalink)  
Old 02-04-2005, 04:59 PM
Member
 
Join Date: May 2004
Posts: 78
Default Re:Special characters

I shall check this out. Thanks for your comments. Could you send me the game or upload it? It would be fantastic to see it with Chinese characters?
__________________
:)
Reply With Quote
  #4 (permalink)  
Old 02-04-2005, 05:06 PM
Member
 
Join Date: May 2004
Posts: 78
Default Re:Special characters

I've just checked and I was using the previous version.

I've downloaded the newer one and tried it out. It does seem to work.
__________________
:)
Reply With Quote
  #5 (permalink)  
Old 02-06-2005, 04:32 PM
Member
 
Join Date: May 2004
Posts: 78
Default Re:Special characters

Unfortunately now I've tested this further I keep encountering difficulties.

My program takes inputted text and generates a new .swf by replacing text.

What I have found is that if I enter 'Español' - and pass this through SWFGen - the letter after the 'ñ' is dropped.

However. I the variable is passed correctly by SWFGen as the .html page that is created at the same time has the correct characters.

A 'solution' is to add an extra space after any special characters, but this isn't ideal.

Can you offer any solutions?
__________________
:)
Reply With Quote
  #6 (permalink)  
Old 02-06-2005, 11:30 PM
Member
 
Join Date: May 2004
Posts: 78
Default Re:Special characters

Found the solution ;D

Before I pass the text through SWFGen I use the 'escape' command to urlencode the text. I then run 'unescape' to un-urlencode the text.

Works now (I hope!) :
__________________
:)
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:41 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.