Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Localization using ASP.NET

0 views
Skip to first unread message

Kevin Kraus

unread,
Apr 16, 2003, 2:39:38 PM4/16/03
to
I have an ASP.NET app that displays dates that is used internationally.
Users are asking that the dates be formatted for their locale (France,
England, US, and Netherlands). I have found a way to format dates using the
CultureInfo class, but I don't know how to get the encoding from the request
of the user's browser. I checked the server variables, and there are no
properties, that I can see, for what type of encoding the browser is set to.

any help would be greatly appreciated

Kevin


Ray D.

unread,
Apr 16, 2003, 3:17:54 PM4/16/03
to
Does the HttpRequest.ContentEncoding property give you what you need?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemwebhttprequestclasscontentencodingtopic.asp

--
Ray D.
(remove NOSPAM. from my e-mail address for a direct reply)


"Kevin Kraus" <kevin_w_kraus[NOSPAM]@msn.com> wrote in message
news:#W#BOeEBD...@TK2MSFTNGP10.phx.gbl...

Kevin Kraus

unread,
Apr 16, 2003, 3:51:10 PM4/16/03
to
Thanks Ray,

I actually mis-spoke when I said I needed to get the encoding for this
procedure. I actually need to get the preferred language of the user, which
I found using the Request.UserLanguages array.

Thanks for your help

Kevin

"Ray D." <r...@NOSPAM.greeble.com> wrote in message
news:#1PQd0EB...@TK2MSFTNGP11.phx.gbl...

0 new messages