close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Having issues with Dynamic Dropdowns and a Circumflex...

Thread began 6/03/2010 1:37 pm by patrick126424 | Last modified 8/17/2010 5:12 pm by Jason Byrnes | 7574 views | 7 replies |

patrick126424

Having issues with Dynamic Dropdowns and a Circumflex...

Dynamic Dropdowns is awesome. Had a problem today when a client asked to use a word in the list with a Î circumflex above a capital I. Keep getting an error on the encoding.

I tried adding another line to the WA_Replace function to replace the character in question with the unicode equivalent.

Any ideas?

Thanks in advance - Patrick

Sign in to reply to this post

Jason ByrnesWebAssist

what is the error you are getting?

Can you post a link where I could see the problem to investigate the issue?

Sign in to reply to this post

patrick126424

Specific Error Message...

------------
array += 'WAJA['+ str(n) +'][' + str(m) + '][1] = \'' + WA_Replace(str(getattr(querySet[x], 'title'))) + '\' ;\n'

UnicodeEncodeError: 'ascii' codec can't encode character u'\xce' in position 1: ordinal not in range(128)
-------------
This is the error I get when I add something to my database that can't be read by WA Dynamic Dropdowns.

Sign in to reply to this post

Jason ByrnesWebAssist

Can you post a link where I could see the problem to investigate the issue?

Sign in to reply to this post

patrick126424

Example...

Here is an example for your review.

two/

This is a navigation element that works incredibly well with Dynamic Drop Downs.

To see the issue, use the following steps:

Choose Brands from the first list. Then scroll down in the second select menu item and you will see the issue with the word CÎROC. The circumflex renders as a question mark. The database is using the proper character set and can render out as HTML without issue. But when placed into the dynamic dropdown array, it freaks out.

Any ideas?

Sign in to reply to this post

Jason ByrnesWebAssist

it is not being writen to the page properly:
WAJA[20][1][1] = 'C�ROC';



you may need to change the character set being used by the connection, in the connection file, you can add:
mysql_set_charset('utf8',$<connection name>);

to the line before the ?> tag to force the connections character set to utf-8, you will need to change <connection name> to the name of the connection.

Sign in to reply to this post

patrick126424

Sweet!

Jason -- You are a genius! That worked like a charm. I appreciate your assistance on this issue!

Sign in to reply to this post

Jason ByrnesWebAssist

Awesome, glad to hear that did the trick.

Sign in to reply to this post

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

Content

rating

Layout

rating

Ease of use

rating

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...