On first ASP page there is a FORM that user must fill - personal data
& stuff, where users use special language related characters (like
Č, š, Ž...). When I post the form results to another ASP page
that collects the data with Request.form("field"), special characters
usually (90%) disappear, change into boxes or some other characters.
This page should then write the results to a DB or send it via email,
but since the characters are not encoded properly I did not write the
script yet.
I tried to set Codepage and charset, but it does not solve the
problem.
I can't seem to find a solution on the web since I am not sure what to
look for.
I need to filter the username entry in the field during the registration. If I'm not mistaken, usernames can't consist of special characters, only international alphabet characters (a-z,A-Z), digits(0-9) and underline allowed.
I tried with something like "._[a-z][A-Z][0-9]" but it doesn't work.
I have a problem with special Slavic (CE) and German charaters. On the first ASP page I have a FORM (user data...address...) that is posted to other ASP page. Data is then collected with request.form(item), and then it is written into a DB. Well the problem is that special langauge specific charaters are tranformed into boxes or some other charaters. I tried the response write to see if it is a problem with the DB part, but it isn't. Anyway does anyone have a working solution, since I can't find any on the web. I experimentd with codepage and charset, but with no results. Also I tried to post the data to email script - there problem is there.
Is there a way to change encoding of a message created with CDO.Message, or otherwise send international characters (unicode) in Textbody? The messages I get now show question signs instead of international characters.
I hope somone can offer some advice. I have built a database accepting information through ASP from clients in UK, Germany France and Russia. I set the ASP codepage to 65001 and the charset to UTF-8 and thought this would be enough to present the information from the different sources correctly.
Russian and English are OK but German and French produse peculiar chars. Set the codepage to 1252 and Russian goes awry. Has anyone some pointers to setup a truly international CMS?
I am having problems sending values from a simple FORM to a database. All is written in ASP, and I am doing some validations before it is actually saved in my database.
It worked for several years, but now it won't accept international characters. This means that the Norwegian word for boat "BÅT" ends up like "BT" since the "Å" isn't sent.
I have done several testings, and it actually looks like the error occurs immidiately after I hit the submit-button.
When using ASP's FileSystemObject to create text files, I am unable to get user submitted text (in Hebrew) to save as anything other than "?????". The text file is being saved in Unicode and setting the CodePage in ASP proved unsuccessful. Strangely, hard coded Hebrew text in an ASP variable does add to the text file correctly.
Any ideas of why this happens and how to get it to work correctly?
Anyone in here got an idea how i could limit the display on on a paragraph to 50 characters? because everytime I access the database it would show up the entire paragraph.
I have the character & (username is a&d) in a username in one of my database fields and it won't read it properly. Do you have to do something special with characters like that?
sqlString = "SELECT * FROM Users WHERE UserID=" & "'" & userid & "'"
I have a MS SQL 7.0 table with a large field (> 500 characters). My select statement embedded in my ASP file in an intranet web interface only returns 255 characters. If I run the select statement in Query Analyzer, I can easily change the "Maximum Characters per Column" setting to return the entire field, but that doesn't help me in my ASP web interface. How do I return the entire field through ASP?
What I am trying to do could be simple but I have no idea how to it. I am trying to display only a part of the record retrieved from database. I have retrieve data from database and I show it in normal way <% = oRs(0)%>, the problem is that I want to show only 100 first characters and then make some thing like this … after 100 first character. In this way all the data retrieved would look the same in the page.
One of our offices in AD is called "Albert St", the OU is called "Albert St", but when I retrieve the value out of the list box it becomes "Albert" and throws errors as it cant find the "Albert" OU. Not surprising, really. I am going to try type casting, but beyond that
I have a wee lil problem when I am inserting data into my db from my asp page. The problem is that it is inserting unwanted characters with the values. I have used the following to try and remove the unwanted characters but to no avail: Code:
I have a variable I'm pulling from a database that's a phone number in XXX-XXX-XXXX format. What I'm looking for is a way to strip out all non-numeric characters from the variable (XXXXXXXXXX). I don't want it to look only for "-", since sometimes, there are also alpha characters entered as well.
Im doing a update page and noticed this error, whenever you want to write for example "can't, i've" it errors on submit, but characters like "." are okay. Why doesn't it like these characters and how can i make it like them? I need some extra code?
I have a SQL statement to retreive results based on keywords entered I only want to show the first 200 characters of the field though, how would I modify this code to do just that?
I am currently building a website and in one of the pages, it is to return Immediate, Extended, Standdown instead of 1.Immediate, 2.Extended, 3.Standdown(in the Ms Access). I am wondering if there is any quote to help me not display the first 2 characters(eg 1.) but just the 3rd character onwards. # I need the numbering there for future usage thus i cannot remove it from the Access database
I have created a form in which people insert there fax number, at the moment it returns an error if a space is inserted in the fax number ie: 0234 76893. How do I correct this?
The website that I am developing is having a search option. The search is according to the type of Industries, like IT-Software, IT-Hardware etc. I am using procedure to search through the database. Now whenever I Select an Industry name like IT - Software, FMCG/Foods/Beverages(i.e with special characters) etc. i get an error message Code: Line 1: Incorrect syntax near '/'. here is the code where I am getting the error
this is same for every keyword having special characters like / , - and even space But when I use keywords without any special character its works fine.
I'm pulling product descriptions from the database and would like to limit the number of charcters that is displayed. Also, I'd like to add ... at the end.
Something like: This long text is boring blah blah blah
I have a database with names, lastnames which has special characters to be seen (10-15 of them), for example: "{" has to be "š". I emphasize - those characters are not to be replaced in the database, but just to be replaced when go to the screen.Is the only way to do that function replace in the user function that has to be made? I have to say that I have to make the similar function for data entry - input also, which has to replace those characters before - for example search.
i am running MS SQL server over ASP.When i try to retrieve values from my MS SQL db, i get all values except for text characters. with a simple select statement such as
select * from table1
When i then try to apply the record sets in my ASP page. e.g.
<%=(products.Fields.Item("category").Value)%>
I get all values for varchar, bit, interger, numeric etc but the text values which are more than 250 characters dont appear.What could be the problem?
i want to replace the first few characters of a string with something else. we are pulling information from our database and i want to replace the first 3 characters with some different text. how can i do this? i know how to use the replace function to replace all instances in a string, but how can i replace just the first instnace?
I am trying to prepare a report to export data to a csv file and, in addtion to the charaters present in the DB the csv file also contains some charaters which i do not understand (some square type characters), i tried to copy them here but they seem to changing to spaces when copied here.
I try to display a combo box which contains String of variable length.But it occurs that only the 10 first characters of one string are displayed.is it a limit imposed by ASP
I have a Visual FoxPro table with Memos fields, and when i insert into the table a value that cames from a TEXTAREA field on a form, give me an error. Why? if the table field is MEMO?
I have an ASP page. In there, I retirieve some data (Korean characters for testing purpose) from the database and I tried to display it. If I set the session.codepage = 949, the foreign characters dodn't display correctly. If I set session.codepage = 1252, which is English (US), the foreign characters display fine in a combo box.