asp.net-mvc


Unicode Issue with Chrome


Here goes the path I follow.
1. User enters text in html editor, tiny mce edtitor.
2. that text is uploaded to Server side MVC controller
3. Controller use following line to write that HTML content (string) to a temp location on server
new MemoryStream(Encoding.Unicode.GetBytes(HtmlContent))
4. That file in temp location (in another step) is then used to get a byte[] of the contents
5. In the last step byte[] is send via stored procedure to database to a column field of type varbinary.
Now the problem is that when I read that varbinary back to byte[] and send it to browser using the following line of MVC with MIME type text/HTML.
File(attachmentFile.BinaryData, mimeType, pFileName);
The file downloads and opens correctly in both IE and Firefox but not in chrome. I don't know what the issue is with chrome

Related Links

Async Action Method with ActionController / AsyncActionController [duplicate]
Exporting Data Grid to PDF
mvc client side validation with required attribute not working
IIS pages accessible remotely in LAN but not locally on server
Cannot perform runtime binding on a null reference [duplicate]
While Debugging in VS, can I change the HTTP Header server tag?
How to prevent inserting rows with no two rows will have same (duplicates) value
System.Web.HttpCompileException - External Component throws an excepetion
MVC Required attribute not being picked up
Knockout.js - loading JSON data with previous <select> value
Entity Framework. Base class member is not populated when save
Model not updated after database change
How can I scan my local network from cloud server WMI?
refresh every 5 minutes en asp.net mvc
Online website resources removed, name changed or temporarily unavailable
ASP.Net Identity change Password Hashing method [duplicate]

Categories

HOME
math
typescript
graph
common-lisp
redirect
xaml
youtube
appium-ios
jsessionid
word-vba
jsonschema
prometheus
normalization
tsql
antlr4
winsql
phpmailer
microsoft-dynamics
identifier
google-maps-sdk-ios
sql-server-express
frequency
installer
nested-set-model
semantics
line-breaks
jcrop
naturallyspeaking
structure
popupwindow
gcp
charts.js
apache-commons-httpclient
evercookie
ose
vrtk
pymssql
azure-app-service-envrmnt
nav
bem
rtems
oracle-aq
pseudo-element
sql-mode
column-oriented
hipi
itertools
facebook-canvas
callkit
geneticsharp
kombu
tachyon
vispy
redux-framework
xceed
ubuntu-15.04
turnjs
pygments
telecommunication
ng-annotate
file-management
rabbitvcs
asp.net-webpages
filenet-content-engine
membership
domo
oracle-bi
coldfusion-10
spinach
alienvault
solr-boost
omap
emberfire
theorem-proving
java-client
gnat
ash
django-supervisor
asciiencoding
nmea
resolver
glulookat
hla
xhtml-transitional
mosek
layout-manager
file-structure
xsocket
working-directory
nextpeer
freeglut
ekeventkit
noindex
ember-router
closest
bubble-popup
retain
openfeint
jdic
spquery
indextank

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App