Question

Converting a utf-8 string to hebrew encoding

Asked by: ophirlotan

I have an ASP file that gets as parameter a utf-8 string of a hebrew word ( format is %D7%90 in utf-8 for the character that is %E0 in hebrew encoding ).
I would like to take that string which is in utf-8 and with ASP code convert it to a hebrew encoding string.  How can this be done in script ( prefereably without using outside components ), a code snippet would be appreciated.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2000-05-07 at 04:17:33ID10340057
Tags

asp

,

convert

Topic

Active Server Pages (ASP)

Participating Experts
1
Points
100
Comments
2

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. UTF-8 encoding
    there's a java class that does UTF-8 encoding, but I need it to work in javascript. can anyone convert the following so that it will work in a javascript function? i tried for about an hour, and i kept getting errors because i don't think js supports hex[] call nor append in ...
  2. Hebrew Font Display
    I have installed the additional language (Hebrew) and am unable to display email messages via the gmail client. The message comes out garbeled....any ideas? In my encoding I have selected just about every combination of hebrew and UTF-8....
  3. hebrew database problem
    hi i have a database that holds hebrew information. i have a php page that should output the info. if i write hebrew directly in the page it works (the page is set to utf-8), but when the info comes from the database i get question marks. i have tried to change the databas...
  4. hebrew with javascript
    all i want is to alert hebrew words... when i save the hebrew text on my server http manager it being saved like יברית when i save it in ftp it looks like òçéòëç the thing is that all my html's saved like this and ...
  5. email & hebrew
    i am tring to build a regular form in wich will be send to some email after submition... but when i am typing hebrew inside the form and use this code, i got some '×>×' ×'×>×"×' gibberish , i am not a big expert in hebrew but it sure not looks like it... the pag...
  6. utf-8 into hebrew
    i am printing utf8 db into mobile device... i need "function" that will be able to recieve rs("field") in ut-f coding and to print hebrew letters... how can i do this?

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: adinasPosted on 2000-05-08 at 06:28:03ID: 2788452

check this out:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<HEAD>
<TITLE>Character Set Recognition</TITLE>

<META NAME=MS-HKWD CONTENT="Character Set Recognition">
<META NAME="Keywords" CONTENT="Dynamic HTML, DHTML, IE4, Internet Explorer 4.0">
<META NAME="Platform" CONTENT="Windows, Win95, WinNT, Mac">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso8859-1">
<META NAME="MS.LOCALE" CONTENT="EN-US">
<META NAME="ROBOTS" CONTENT="all">


<SCRIPT>
//<!--
var g_isIE = false, g_isNav = false, g_iMaj = 0, g_sPlat = "";
// -->
</SCRIPT>
<SCRIPT SRC="../../../code/ver.js"></SCRIPT>


<SCRIPT DEFER SRC="../../../code/common.js"></SCRIPT>
<SCRIPT DEFER>
//<!--
function InitPage()
{
      if (g_isIE && g_iMaj >= 4)      
      {
            SetTOC();
      }
}
//-->
</SCRIPT>

<LINK REL="stylesheet" HREF="/msdn/sdk/inetsdk/help/basicsdkIE4.css" TYPE="text/css">
<!-- STYLE_START -->


<SCRIPT>
//<!--
   var sVR = '../../../'      // Set root for the style sheet
   var sCSS = '<LINK REL="stylesheet" HREF="' + sVR;

   if(g_isIE)
   {
         if (g_iMaj >= 4) // For MSIE 4.0 or later
         {
               sCSS += 'basicSDKIE4';
               if (g_sPlat == "Win") // Windows only for now
               {
                     document.createStyleSheet(sVR + 'advSDKIE4.css');
               }
         }
         else // For MSIE 3.0 or earlier
         {
               sCSS += 'basicSDKIE3';
         }
   }
   else if (g_isNav) // For all Nav versions
   {
         sCSS += 'basicSDKNAV';
   }
   else
   {
         sCSS += 'basicSDKIE3'; // default to IE3 sheet
   }

   sCSS += (sCSS == '' ? '' : '.css" TYPE="text/css">');

   document.write(sCSS);
//-->
</SCRIPT>
<!-- STYLE_END -->
</HEAD>
<BODY onload="InitPage()" BGCOLOR="#FFFFFF">

<A NAME="pagetop"></A><A NAME="charsets4"></A>
<!-- NAV_LINKS_START -->
<TABLE class=main BORDER=0 CELLSPACING="0" CELLPADDING="0" WIDTH="10%"><TR><TD ROWSPAN="3" VALIGN="TOP" WIDTH="121"><IMG SRC="../../../art/headbar2.gif" WIDTH="121" HEIGHT="82" BORDER=0 ALT="Character Set Recognition"></TD><TD ROWSPAN="2" VALIGN="TOP" WIDTH="186"><IMG SRC="../../../art/headbara.gif" WIDTH="186" HEIGHT="44" BORDER=0 ALT="Character Set Recognition"></TD><TD VALIGN="TOP" WIDTH="470"><IMG SRC="../../../art/replace1.gif" WIDTH="470" HEIGHT="17" BORDER=0 ALT="*"></TD></TR>
<TR><TD><PRE><IMG SRC="../../../art/arrowrht.gif" WIDTH="14" HEIGHT="14" ALIGN="MIDDLE" BORDER=0 ALT="*"><object id="hhal_1" type="application/x-oleobject"
      classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<PARAM name="Command" value="ALink">
<PARAM name="Item1" value="">
<PARAM name="Item2" value=_win32_Contents>
</object><A STYLE="color:black" ID=TOC HREF=JavaScript:hhal_1.Click()>Contents</A>  <IMG SRC="../../../art/arrowrht.gif" WIDTH="14" HEIGHT="14" ALIGN="MIDDLE" BORDER=0 ALT="*"><object id="hhal_2" type="application/x-oleobject"
      classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<PARAM name="Command" value="ALink">
<PARAM name="Item1" value="">
<PARAM name="Item2" value=_win32_Index_1sz1>
</object><A STYLE="color:black" HREF=JavaScript:hhal_2.Click()>Index</A>  <IMG SRC="../../../art/arrowrht.gif" WIDTH="14" HEIGHT="14" ALIGN="MIDDLE" BORDER=0 ALT="*"><A STYLE="color:black" HREF="charsets.htm#ie40_charsets">Topic Contents</A></PRE></TD></TR>
<TR><TD COLSPAN="2"><PRE><IMG SRC="../../../art/arrowlft.gif" WIDTH="17" HEIGHT="15" ALIGN="MIDDLE" BORDER=0 ALT="*"><B>Previous Topic:</B> <A STYLE="color:black" HREF="charset3.htm">Character Entities for Special Symbols and BIDI Text</A>
<IMG SRC="../../../art/arrownxt.gif" WIDTH="17" HEIGHT="16" ALIGN="MIDDLE" BORDER=0 ALT="*"><B>Next Topic:</B> <A  STYLE="color:black" HREF="../cssrefs.htm">CSS Attributes Reference</A></PRE></TD></TR>
</TABLE>
<!-- NAVLINKS_END -->
<BLOCKQUOTE class="body">
<!-- CONTENTS_START -->
<H1>Character Set Recognition</H1>
<BR CLEAR=ALL>
<P>Internet Explorer uses the character set specified for a document to determine how to translate the bytes in the document into characters on the screen or paper. By default, Internet Explorer uses the character set specified in the HTTP content type returned by the server to determine this translation. If this parameter is not given, Internet Explorer uses the character set specified by the <A HREF="../html/META.htm#META">META</A> element in the document. It uses the user's preferences if no <B>META</B> element is given.

<P>You can use the <A HREF="../html/META.htm#META">META</A> element to explicitly set the character set for a document. In this case, you set the <A HREF="../html/META.htm#HTTP_EQUIV_">HTTP-EQUIV=</A> attribute to "Content-Type" and specify a character set identifier in the <A HREF="../html/META.htm#CONTENT_">CONTENT=</A> attribute. For example, the following <B>META</B> element identifies Windows-1251 as the character set for the document.

<PRE>&lt;META HTTP-EQUIV="Content-Type"
  CONTENT="text/html; CHARSET=Windows-1251"&gt;
</PRE>

<P>As long as you place the <A HREF="../html/META.htm#META">META</A> element before the <A HREF="../html/BODY.htm#BODY">BODY</A> element, it affects the whole document, including the <A HREF="../html/TITLE.htm#TITLE">TITLE</A> element. For clarity it should appear as the first element after <A HREF="../html/HEAD.htm#HEAD">HEAD</A> so that all readers know the encoding before the first displayable is parsed. Note that the <B>META</B> element applies to the document containing it. This means, for example, that a compound document (a document consisting of two or more documents in a set of frames) can use different character sets in different frames.

<P>
<TABLE>
<TR><TD><B>Windows <NOBR>Codepage #</NOBR> </B></TD><TD><B>Display name </B></TD><TD><B><NOBR>Preferred ID</NOBR> on SAVE </B></TD><TD><B>Internet Explorer 4 Aliases</B></TD></TR>
<TR><TD>1252 </TD><TD>Western </TD><TD>iso-8859-1<BR>except when 128-159 is used, use "Windows-1252" </TD><TD>iso8859-1, iso_8859-1, iso-8859-1, ANSI_X3.4-1968, iso-ir-6, ANSI_X3.4-1986, ISO_646, irv:1991, ISO646-US, us, IBM367, cp367, csASCII, latin1, iso_8859-1:1987, iso-ir-100, ibm819, cp819, Windows-1252 </TD></TR>
<TR><TD>20105 </TD><TD> </TD><TD>us-ascii </TD><TD>us-acii, ascii </TD></TR>
<TR><TD>28592 </TD><TD>Central European (ISO) </TD><TD>iso-8859-2 </TD><TD>iso8859-2, iso-8859-2, iso_8859-2, latin2, iso_8859-2:1987, iso-ir-101, l2, csISOLatin2 </TD></TR>
<TR><TD>1250 </TD><TD>Central European (Windows) </TD><TD>Windows-1250 </TD><TD>Windows-1250, x-cp1250 </TD></TR>
<TR><TD>1251 </TD><TD>Cyrillic (Windows) </TD><TD>Windows-1251 </TD><TD>Windows-1251, x-cp1251 </TD></TR>
<TR><TD>1253 </TD><TD>Greek (Windows) </TD><TD>Windows-1253 </TD><TD>Windows-1253 </TD></TR>
<TR><TD>1254 </TD><TD>Turkish (Windows) </TD><TD>Windows-1254 </TD><TD>Windows-1254 </TD></TR>
<TR><TD>932 </TD><TD>Japanese (Shift-JIS) </TD><TD>shift_jis </TD><TD>shift_jis, x-sjis, ms_Kanji, csShiftJIS, x-ms-cp932 </TD></TR>
<TR><TD>51932 </TD><TD>Japanese (EUC) </TD><TD>x-euc-jp </TD><TD>Extended_UNIX_Code_Packed_Format_for_Japanese, csEUCPkdFmtJapanese, x-euc-jp, x-euc </TD></TR>
<TR><TD>50220 </TD><TD>Japanese (JIS) </TD><TD>iso-2022-jp </TD><TD>csISO2022JP, iso-2022-jp </TD></TR>
<TR><TD>1257 </TD><TD>Baltic (Windows) </TD><TD>Windows-1257 </TD><TD>windows-1257 </TD></TR>
<TR><TD>950 </TD><TD>Traditional Chinese (BIG5) </TD><TD>big5 </TD><TD>big5, csbig5, x-x-big5 </TD></TR>
<TR><TD>936 </TD><TD>Simplified Chinese (GB2312) </TD><TD>gb2312 </TD><TD>GB_2312-80, iso-ir-58, chinese, csISO58GB231280, csGB2312, gb2312 </TD></TR>
<TR><TD>20866 </TD><TD>Cyrillic (KOI8-R) </TD><TD>koi8-r </TD><TD>csKOI8R, koi8-r </TD></TR>
<TR><TD>949 </TD><TD>Korean (KSC5601) </TD><TD>ks_c_5601 </TD><TD>ks_c_5601, ks_c_5601-1987, korean, csKSC56011987 </TD></TR>
<TR><TD>1255 (logical) </TD><TD>Hebrew (ISO-logical) </TD><TD>Windows-1255 </TD><TD>iso-8859-8i </TD></TR>
<TR><TD>1255 (visual) </TD><TD>Hebrew (ISO-Visual) </TD><TD>iso-8859-8 </TD><TD>ISO-8859-8 Visual, ISO-8859-8 , ISO_8859-8, visual </TD></TR>
<TR><TD>862 </TD><TD>Hebrew (DOS) </TD><TD>dos-862 </TD><TD>dos-862 </TD></TR>
<TR><TD>1256 </TD><TD>Arabic (Windows) </TD><TD>Windows-1256 </TD><TD>Windows-1256  </TD></TR>
<TR><TD>720 </TD><TD>Arabic (DOS) </TD><TD>dos-720 </TD><TD>dos-720 </TD></TR>
<TR><TD>874 </TD><TD>Thai </TD><TD>Windows-874 </TD><TD>Windows-874 </TD></TR>
<TR><TD>1258 </TD><TD>Vietnamese </TD><TD>Windows-1258 </TD><TD>Windows-1258 </TD></TR>
<TR><TD>65001 </TD><TD>Unicode UTF-8 </TD><TD>UTF-8 </TD><TD>UTF-8, unicode-1-1-utf-8, unicode-2-0-utf-8 </TD></TR>
<TR><TD>65000 </TD><TD>Unicode UTF-7 </TD><TD>UNICODE-1-1-UTF-7 </TD><TD>utf-7, UNICODE-1-1-UTF-7, csUnicode11UTF7, utf-7 </TD></TR>
<TR><TD>50225 </TD><TD>Korean (ISO) </TD><TD>ISO-2022-KR </TD><TD>ISO-2022-KR, csISO2022KR </TD></TR>
<TR><TD>52936 </TD><TD>Simplified Chinese (HZ) </TD><TD>HZ-GB-2312 </TD><TD>HZ-GB-2312 </TD></TR>
<TR><TD>28594 </TD><TD>Baltic (ISO) </TD><TD>iso-8869-4 </TD><TD>ISO_8859-4:1988, iso-ir-110, ISO_8859-4, ISO-8859-4, latin4, l4, csISOLatin4 </TD></TR>
<TR><TD>28585 </TD><TD>Cyrillic (ISO) </TD><TD>iso_8859-5 </TD><TD>ISO_8859-5:1988, iso-ir-144, ISO_8859-5, ISO-8859-5, cyrillic, csISOLatinCyrillic, csISOLatin5 </TD></TR>
<TR><TD>28597 </TD><TD>Greek (ISO) </TD><TD>iso-8859-7 </TD><TD>ISO_8859-7:1987, iso-ir-126, ISO_8859-7, ISO-8859-7, ELOT_928, ECMA-118, greek, greek8, csISOLatinGreek </TD></TR>
<TR><TD>28599 </TD><TD>Turkish (ISO) </TD><TD>iso-8859-9 </TD><TD>ISO_8859-9:1989, iso-ir-148, ISO_8859-9, ISO-8859-9, latin5, l5, csISOLatin5 </TD></TR>
</TABLE>
<!-- CONTENTS_END -->
<!-- START PAGE FOOTER -->
<H6><HR size=1></H6>
<P><A ID=line HREF="#pagetop"><IMG src="../../../art/arrowup1.gif" WIDTH="17" HEIGHT="16" ALIGN="MIDDLE" BORDER="0" ALT="Up">&nbsp;Top of Page</A>
<BR><A ID=line HREF="http://www.microsoft.com/misc/cpyright.htm" TARGET="_top">&#169; 1997 Microsoft Corporation. All rights reserved. Terms of Use.</A>
<!-- END PAGE FOOTER -->
</BLOCKQUOTE>
</BODY>
</HTML>


 

by: ophirlotanPosted on 2000-06-11 at 06:02:53ID: 2927684

Comment accepted as answer

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...