Developer forum

Forum » Development » RE: Weird values in the Database.

RE: Weird values in the Database.

Yasharth Tahiliani
Reply

Hi, 

I am creating new pages that are of a certain Item Type.

These pages are being replaced with weird characters. The spaces are being replaced with '+' and other characters such as commas are being replaced too:

For example:

English, Drama & Performing Arts is being replaced with the following:

English%2c+Drama+%26+Performing+Arts.

This is highly inconvenient as it is causing issues when trying to build pages that use values from the Database.

Can you please suggest a solution for this?

Best Regards,

Yash.


Replies

 
Yasharth Tahiliani
Reply

Hi,

I just realised that it is actually saving the values as URL decoded values. All I have to do is HttpUtility.URLEncode() method to compare the values in the database now.

Sorry and Thanks :)

Yash. 

 

You must be logged in to post in the forum