• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 811
  • Last Modified:

COLLATE question...

Hello. This is my first post here, and I hope I will get my problem solved. I started working on a DB in MSSQL Server (the trial version from MS site). That didn't look bad until I tried to create a DB in Serbian Cyrillic script. For DB, table, sp, view names I used english names, but the data had to be stored in cyrillic and displayed the same way on the asp page.

I used nvarchar data type which should be ok, in my stored procedures I used COLLATE CYRILLIC_GENERAL_BIN which should also be OK, but when I get something from a form, and send it to the table using a stored procedure (INSERT INTO) I get garbage characters. I tried changing setting many times, deleting the DB and making a new one, but nothing seemed to work.

Does anybody have any ideas. Please post if you do, I've been agonizing over this problem for a week now. Thank you in advance.
1 Solution
Your problem is this:

<%Session.Codepage = 1251%>

Stuff being sent from your pade is corrupted, this will fix it.

naca ;)

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now