Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Deucer
Newbie


Joined: 13 Jul 2009
Posts: 2

PostPosted: Mon Jul 13, 2009 11:06 pm   

Use of a non-ascii symbol in a script
 
Hi, I'm a fairly new user of cmud. For the mud I am playing (Wotmud) I downloaded a script that enables zmud and cmud users to submit the "stats" of their character (data on strength, intelligence, willpower, dexterity etc) to an external database. This script has been in use for quite some time. However a number of new players including myself have not been able to make it work. The database refuses the data (Your data was invalid). I think I have tracked the problem down to one single issue.

The original script contains the following line (taken from the original):

#URL http://mas.wotmad.org/stat_upload.php?str=@Str~&nt=@Nt~&wil=@Wil~&dex=@Dex~&con=@Con~∑=@Sum~&race=@Race~&class=@Class~&sex=@Sex~&homeland=@Homelanddb~&key=@Key~&emailf=@Emailf~&emailb=@Emailb

This line opens up a webpage containing the database and appends the stats as part of the page's address.

However, when the script is added to cmud this same line is translated into (taken from the Package Editor):

#URL http://mas.wotmad.org/stat_upload.php?str=@Str~&nt=@Nt~&wil=@Wil~&dex=@Dex~&con=@Con~?=@Sum~&race=@Race~&class=@Class~&sex=@Sex~&homeland=@Homelanddb~&key=@Key~&emailf=@Emailf~&emailb=@Emailb

Apparently the symbol is not accepted by cmud and is replaced by a ?. When I try to add the ∑ symbol manually (from the Character Map windows accessory) it is simply translated to an S.

Are there settings that need changing for cmud to accept the ∑ symbol as part of a script, any other fix ?

I am using Windows XP SP3, and CMUD 2.37

Thanks for any help
Reply with quote
Deucer
Newbie


Joined: 13 Jul 2009
Posts: 2

PostPosted: Tue Jul 14, 2009 12:27 am   
 
Script problem solved Very Happy

Apparently the problem was not in cmud (although it won't allow the symbol). It turns out that the email containing the script was not shown correctly when viewed with the Firefox browser. In Internet Explorer it does show correctly (and works) : http://mas.wotmad.org/stat_upload.php?str=@Str~&nt=@Nt~&wil=@Wil~&dex=@Dex~&con=@Con~&sum=@Sum~&race=@Race~&class=@Class~&sex=@Sex~&homeland=@Homelanddb~&key=@Key~&emailf=@Emailf~&emailb=@Emailb

Although both browsers use Unicode(UTF-8), apparently Firefox translates "~&sum" into "~&∑".
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net