The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Translation Bug Solved

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Jason Nadal

Posts: 184
Nickname: jnadal
Registered: Dec, 2003

Jason Nadal is an asp.net developer, dabbling in winforms from time to time.
Translation Bug Solved Posted: May 6, 2005 3:23 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Jason Nadal.
Original Post: Translation Bug Solved
Feed Title: Jason Nadal
Feed URL: http://www.asp.net/err404.htm?aspxerrorpath=/jnadal/Rss.aspx
Feed Description: Restless C#ding
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Jason Nadal
Latest Posts From Jason Nadal

Advertisement

After way too much time away, I have finally gotten around to refactoring my free translation web service, after a move to a new host (more on that later).

The service, which has been housed at:

http://www.restlessdelusions.com/projects/services/translate/translate.asmx

has had a bug with certain characters for quite a while.  An English to Spanish translation of "This is mine." resulted in the garbled "?ste es el m?o", due to some encoding error I never had the time to fix. Well here's the answer:  you can encode a StreamReader with a codepage based on the client's machine. To solve the problem, I created an enum based on microsoft's typography docs and created an overload which defaulted to Latin2 (Codepage 1250). There's also an overload if anyone using the service wants to choose a custom codepage.

You can try out the service via the asmx above, or use my Winform Sample

Enjoy!

Read: Translation Bug Solved

Topic: Performance Monitoring - JIT compilations Previous Topic   Next Topic Topic: Pictures from Singapore and Malaysia

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use