close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

stop encoding

Thread began 7/29/2009 12:48 am by neo314 | Last modified 7/31/2009 9:29 pm by neo314 | 2560 views | 7 replies


We could not find where this encoding was occuring, but support suggested inserting the actual character instead of the HTML entity. That worked, but could cause encoding problem. Then I found this article.


It appears that the use of "new Options()" automatically encodes the characters input into the option. The answer is to use unicode escape characters, but then WA DD adds backslashes, so I had to remove the function WA_DD_Replace from the text value and make sure I properly escape the input my function returned.

So instead of ½ I use /u00bd then remove the function WA_DD_Replace from that value. My new function looks like this for javascript functions

function dimFmtList($dim_size) {
if (($dim_size - floor($dim_size)) != 0) {
if (($dim_size - floor($dim_size)) == 0.25) {
$dim_part = "\u00bc\'";
} elseif (($dim_size - floor($dim_size)) == 0.5) {
$dim_part = "\u00bd\'";
} elseif (($dim_size - floor($dim_size)) == 0.75) {
$dim_part = "\u00be\'";
} else {
$dim_part = "\'";
} else {
$dim_part = "\'";
return floor($dim_size).$dim_part;

I used this char table:

My javascript that populates the drop down now looks like this:

echo "WAJA[".$n."][".$m."] = new Array();\n";
echo "WAJA[".$n."][".$m."][0] = "."'".WA_DD_Replace($row_shedSizes["id"])."'".";\n";
// echo "WAJA[".$n."][".$m."][1] = "."'".WA_DD_Replace(dimFmtList($row_shedSizes["width"])."x".dimFmtList($row_shedSizes["depth"])." with ".dimFmtList($row_shedSizes["sidewall"])." Sidewalls and a ".dimFmtList($row_shedSizes["peak"])." Peak")."'".";\n";
echo "WAJA[".$n."][".$m."][1] = "."'".dimFmtList($row_shedSizes["width"])."x".dimFmtList($row_shedSizes["depth"])." with ".dimFmtList($row_shedSizes["sidewall"])." Sidewalls and a ".dimFmtList($row_shedSizes["peak"])." Peak"."'".";\n";

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...