Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3671018
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T02:26:09+00:00 2026-05-19T02:26:09+00:00

I have an application that gets terms from a DB to run as a

  • 0

I have an application that gets terms from a DB to run as a list of string terms. The DB table was set up with nvarchar for that column to include all foreign characters. Now in some cases where characters like ä will come through clearly when getting the terms from the DB and even show that way in the table.
When importing japanese or arabic characters, all I see are ????????.
Now I have tried converting it using different methods, first converting it into utf8 encoding and then back and also secondly using the httputility.htmlencode which works perfectly when it is these characters but then converts quotes and other stuff which I dont need it to do.
Now I accused the db designer that he needs to do something on his part but am I wrong in that the DB should display all these characters and make it easy to just query it and add to my ssearch list. If not is there a consistent way of getting all international characters to display correctly in SQL and VB.net

I know when I have read from text files I just used the Microsoft.visualbasic.textfieldparser reader tool with encoding set to utf8 and this would not be an issue.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T02:26:09+00:00Added an answer on May 19, 2026 at 2:26 am

    If the database field is nvarchar, then it will store data correctly. As you have seen.

    Somewhere before it gets to the database, the data is being lost or changed to varchar: stored procedure, parameters, file encoding, ODBC translation etc.

    DECLARE @foo nvarchar(100), @foo2 varchar(100)
    
    --with arabic and japanese and proper N literal
    SELECT @foo = N'العربي   日本語', @foo2 = N'العربي   日本語'
    SELECT @foo, @foo2 -- gives العربي   日本語
    
    --now a varchar literal
    SELECT @foo = 'العربي   日本語', @foo2 = 'العربي   日本語'
    SELECT @foo, @foo2 --gives ??????   ???
    
    --from my Swiss German keyboard. These are part of my code page.
    SELECT @foo = 'öéäàüè', @foo2 = 'öéäàüè'
    SELECT @foo, @foo2 --gives ??????   ???
    

    So, apologise to the nice DB monkey… 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application that is sensitive to the directory it gets invoked from
I currently have a database that gets updated from a legacy application. I'd like
I have a ASP.net MVC application that gets marker coordinates from a database (I
I have an android application that gets data from the web such as an
I have an application that gets installed with a Wise installer (EDIT: Wise creates
I currently have an application that gets hit with over 20,000 users daily and
We have a web application that is based around a form that gets passed
I have a C++ application that gets detailed system information (processor type, available disk
I have Silverlight application that retrieves data from the database through a WCF Service.
I have an application that gets one of its UI controls via an INativeHandleContract

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.