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

  • SEARCH
  • Home
  • 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 6916505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:36:42+00:00 2026-05-27T09:36:42+00:00

I have an MVC Razor view @{ ViewBag.Title = Index; var c = (char)146;

  • 0

I have an MVC Razor view

@{
ViewBag.Title = "Index";
var c = (char)146;
var c2 = (short)'’';
}
<h2>@c --- @c2 --’-- ‘Why Oh Why’ & &#146;</h2> 
@String.Format("hi {0} there", (char)146)

characters stored in my database in varchar fields are not rendering to the browser.
This example demonstrates how character 146 doesn’t show up
How do I make them render?

[EDIT]

When I do this the character 146 get converted to UNICODE 8217 but if 146 is attempted to be rendered directly on the browser it fails

    public ActionResult Index()
    {

        using (var context = new DataContext())
        {
            var uuuuuggghhh = (from r in context.Projects
                               where r.bizId == "D11C6FD5-D084-43F0-A1EB-76FEED24A28F"
                              select r).FirstOrDefault();

            if (uuuuuggghhh != null)
            {
                var ca = uuuuuggghhh.projectSummaryTxt.ToCharArray();
                ViewData.Model = ca[72]; // this is the character in question
                return View();
            }
        }


        return View();
    }
  • 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-27T09:36:42+00:00Added an answer on May 27, 2026 at 9:36 am

    We finally agreed that the data was corrupt we have asked users who can’t see this character rendered to fix the source data

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

Sidebar

Related Questions

In my razor view I have the following: var url = @Url.Action(Mvc.Leads.GetAllLeads()) var url2
I am working on asp.net MVC 3 application. I have created a Razor view
MVC 3 VB.NET razor. I have a view that has 4 dropdown boxes in
I have asp.net mvc application, that uses razor view engine. I want to send
I have the following markup in an MVC 3 Razor view. As is, the
I have an MVC razor view that iterates over an Orders collection. Each order
I have created an asp.net mvc 3 razor view and added data annotation attributes
Setting a page title I have the following MVC View Syntax <title> Category :
MVC 3 VB.NET applicaiton... Using express checkout with html razor view. I have tried
I have created one page in MVC 3.0 Razor view. Create.cshtml @model LiveTest.Business.Models.QuestionsModel @*<script

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.