473,385 Members | 1,912 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Replace curly to iso 8859

I recently changed my web.config file to iso 8859-1 for the request
and response encoding.

This created another problem: my forms storing information with data
type varchar suddenly replace all Windows curly quotes into question
marks (?). This didn't not apply with ntext.

This said, I can't find anywhere on the web example code on how to at
least replace the curly quotes.

If you have a clue let me know.

Cheers,

Kim
Jul 21 '05 #1
6 1485
Kim Gjerstad <ki********@yahoo.com> wrote:
I recently changed my web.config file to iso 8859-1 for the request
and response encoding.

This created another problem: my forms storing information with data
type varchar suddenly replace all Windows curly quotes into question
marks (?). This didn't not apply with ntext.

This said, I can't find anywhere on the web example code on how to at
least replace the curly quotes.

If you have a clue let me know.


I don't believe ISO-8859-1 includes curly quotes. Any reason for using
8859-1 in particular? In general, I'd suggest using UTF-8.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jul 21 '05 #2
> I don't believe ISO-8859-1 includes curly quotes. Any reason for using
8859-1 in particular? In general, I'd suggest using UTF-8.


That is correct and that's my problem. If I use UTF-8, passing special
characters (such as יאח, etc.) in the URL suddenly causes problems.
Yet, it is essential for the search on my site (http://www.monuc.org)
which actually opens the google search.

Many messages on the groups suggest to change from UTF-8 to 8859 for
foreign language sites. This works well, but the why does it work fine
for the ntext and not varchar? Mystery, mystery.

Cheers,

Kim
Jul 21 '05 #3
Kim Gjerstad <ki********@yahoo.com> wrote:
I don't believe ISO-8859-1 includes curly quotes. Any reason for using
8859-1 in particular? In general, I'd suggest using UTF-8.
That is correct and that's my problem. If I use UTF-8, passing special
characters (such as יאח, etc.) in the URL suddenly causes problems.
Yet, it is essential for the search on my site (http://www.monuc.org)
which actually opens the google search.


Ah, you didn't say it was passing the information on the URL.

Data being passed on a URL is fairly dodgy in terms of encodings,
unfortunately. Can you not make a POST request instead and pass the
data in the body?
Many messages on the groups suggest to change from UTF-8 to 8859 for
foreign language sites. This works well, but the why does it work fine
for the ntext and not varchar? Mystery, mystery.


Check this, but I believe ntext is unicode and varchar isn't - use
nvarchar instead and you should be okay.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jul 21 '05 #4
Kim Gjerstad <ki********@yahoo.com> wrote:
I recently changed my web.config file to iso 8859-1 for the request
and response encoding.

This created another problem: my forms storing information with data
type varchar suddenly replace all Windows curly quotes into question
marks (?). This didn't not apply with ntext.

This said, I can't find anywhere on the web example code on how to at
least replace the curly quotes.

If you have a clue let me know.


I don't believe ISO-8859-1 includes curly quotes. Any reason for using
8859-1 in particular? In general, I'd suggest using UTF-8.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 22 '05 #5
> I don't believe ISO-8859-1 includes curly quotes. Any reason for using
8859-1 in particular? In general, I'd suggest using UTF-8.


That is correct and that's my problem. If I use UTF-8, passing special
characters (such as יאח, etc.) in the URL suddenly causes problems.
Yet, it is essential for the search on my site (http://www.monuc.org)
which actually opens the google search.

Many messages on the groups suggest to change from UTF-8 to 8859 for
foreign language sites. This works well, but the why does it work fine
for the ntext and not varchar? Mystery, mystery.

Cheers,

Kim
Nov 22 '05 #6
Kim Gjerstad <ki********@yahoo.com> wrote:
I don't believe ISO-8859-1 includes curly quotes. Any reason for using
8859-1 in particular? In general, I'd suggest using UTF-8.
That is correct and that's my problem. If I use UTF-8, passing special
characters (such as יאח, etc.) in the URL suddenly causes problems.
Yet, it is essential for the search on my site (http://www.monuc.org)
which actually opens the google search.


Ah, you didn't say it was passing the information on the URL.

Data being passed on a URL is fairly dodgy in terms of encodings,
unfortunately. Can you not make a POST request instead and pass the
data in the body?
Many messages on the groups suggest to change from UTF-8 to 8859 for
foreign language sites. This works well, but the why does it work fine
for the ntext and not varchar? Mystery, mystery.


Check this, but I believe ntext is unicode and varchar isn't - use
nvarchar instead and you should be okay.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 22 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: deko | last post by:
Do I need to use curly brackets in PHP if .. else statements? other constructs? Does it matter? What are Best Practices? Why? thanks in advance... This seems to work WITHOUT curly brackets:...
17
by: Pikkel | last post by:
i'm looking for a way to replace special characters with characters without accents, cedilles, etc.
2
by: Svennglenn | last post by:
I'm having problems replacing text in a unicode string. Here's the code: # -*- coding: cp1252 -*- titel = unicode("ה", "iso-8859-1") print titel print type(titel)
12
by: Barnes | last post by:
Does anyone know of a good way to use the JavaScript string.replace() method in an ASP form? Here is the scenario: I have a form that cannot accept apostrophes. I want to use the replace() so...
1
by: Will | last post by:
I have the following code: var rx = /{{(.+?)}}/i; var expr = 'each {{word}} wrapped in {{curly}} {{braces}} in this {{string}} needs to be {{replaced}} with a different {{value}}.'; var values...
15
by: tshad | last post by:
How do I go about this? I used to know this, but can't find VB.net replace that does this. Something like string.replace("<br>",NL) Thanks,
4
by: Neo Geshel | last post by:
Greetings I am using VB in my ASP.NET project that uses an admin web site to populate a database that provides content for a front end web site. I am looking for a way to use replace() to...
4
by: Lauren Wilson | last post by:
Hi folks, We have a need to replace sub strings in certain message text. We use the Office Assistant to display help and often use the imbedded formatting commands. Those of you who have used...
5
by: Casey | last post by:
Hello, Can someone give me specific code to replace text on a page using server side javascript? I need to use server-side because I need the output to be recognized in the final HTML so that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.