Languages and charset

Hello,
I know that <meta charset="UTF-8"> will suffice for most common languages, but what about when mixing two languages on the very same webpage? I will have one webpage that will be predominantly Arabic with some English words, or can UTF-8 understnad that and not try and mirror the English text to match the Arabic becuase it reads right to left rather than left to right?
I use to use <meta http-equiv="content-language" content="ar-en" but html5 doesn't like that now
Lee

In your head region, you want your meta tag to be "en"
I do realize that is completely counterintuitive.
I created two pages for an organization in two foreign languages (Spanish and Polish). Here is what I did:
In HTML5, I just left things alone.
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">…
In the div with the spanish language: <div lang="es">
When I am using Google's Chrome, it correctly identifies that region as Spanish and offers to translate the language.
So, put your language change in the div, not on the page.
Now, for Arabic.
Your web-pages should have following <meta>-tags set:
<meta http-equiv="Content-Type" CONTENT="text/html; charset=windows-1256"> or
<meta http-equiv="Content-Type" CONTENT="text/html; charset=iso-8859-6">
Frankly, I would do both, because I fear that older Microsoft browsers may not correctly display the Arabic unless you define it properly for Windows.
In HTML the base direction is either set explicitly by the nearest parent element that uses the dir attribute, or, in the absence of such an attribute, the base direction is inherited from the default direction of the document, which is left-to-right (LTR).
Now, if you need to set the entire page up as Arabic and have no other language, here is what you do:
<!DOCTYPE html>
<html dir="rtl" lang="ar">
<head>
<meta charset="utf-8">…
(this is HTML5). And one of the things you'll see is the dir element defined as "rtl" which means your text direction will be right to left for thw whole document. in Internet Explorer and Opera, applying a right-to-left direction in the html or body tag will affect the user interface, too. On both of these browsers the scroll bar will appear to the left side of the window.
But you can do this on the block level as well, just like I defined a div as Spanish:
<div dir="ltr" lang="ar"> … </div>
HTML 5 offers the auto direction control. The auto value tells the browser to look at the first strongly typed character in the element and work out from that what the base direction of the element should be. If it's a Hebrew (or Arabic, etc.) character, the element will get a direction of rtl. If it's, say, a Latin character, the direction will be ltr. This can be very useful for blogs, where you receive input that is submitted by readers.
Lastly, when you specify your typefaces, you need to build a type stack that will have the Arabic characters, but not assume that everyone is using Windows, or Mac, or Linux:
font-family: "Geeza Pro", "Nadeem", "Al Bayan", "DecoType Naskh", "DejaVu Serif", "STFangsong", "STHeiti", "STKaiti", "STSong", "AB AlBayan", "AB Geeza", "AB Kufi", "DecoType Naskh", "Aldhabi", "Andalus", "Sakkal Majalla", "Simplified Arabic", "Traditional Arabic", "Arabic Typesetting", "Urdu Typesetting", "Droid Naskh", "Droid Kufi", "Roboto", "Tahoma", "Times New Roman", "Arial", serif;
Alan Wood has an Arabic Test page: http://www.alanwood.net/unicode/arabic.html
You should also Google for "font survey" to find percentage of computers that have been found to have various fonts installed.
-Mark

Similar Messages

  • Database language and characterset settings

    Hi to all.
    In our company, we are trying to migrate oracle 11g r2 from Ms SQL Server 2000. Our old system has DB links with other MS SQL Servers.
    Our new system will be working on 64 bit fujitsu machine with Oracle enterprise linux on it. The company is in Turkey by the way and and the collation of the server ( which has 32 bit processor ) that has to be linked to new oracle system is "Turkish_CI_AS". What would be the best choice for the region, language and the character set of the database or the server?
    Thanks in advance.
    Regards.
    Gokhan

    I would set the database character set to UTF8, which is a variable-length encoding mechanism. It uses between 1 and 4 bytes to represent any one of the million-plus Unicode characters. It has at least two characteristics that are very appealing: it is completely backward-compatible with ASCII formatted files and it typically results in the smallest encoded string.
    You can use ALTER DATABASE SET CHARACTERSET UTF8 or the CSALTER script to convert your current database, but only provided your current character set is a strict subset of UTF-8, otherwise data corruption can occur. You set the database character set when you create the database. In most cases, you need to do a full export/import to properly convert all data to the new character set.
    NLS_LANG=language_territory.charset. For Turkish I would suggest the following NLS_LANG environment variable:
    TURKISH_TURKEY.UTF8
    Edited by: Markus Waldorf on Aug 3, 2010 1:35 AM
    there is also a forum for globalisation support:
    Globalization Support

  • How can I buy films in languages other than German in Germany? Quite disappointed, i would line to watch films in Original language and not dubbed in strange ways...

    How can I buy films in languages other than German in Germany? Quite disappointed, i would like
    to watch films in Original language and not dubbed in strange ways...

    You are at the mercy of the content owners/copyright holders. They decide what the Apple can sell in each iTS.
    MJ

  • HT4993 i did a master reset on my iphone 4. now when i try to set the phone back up from the start i put in the language and country, I hit next and it takes me to a screen that says connect to itunes, then will not me go any further, what do i do?

    i did a master reset on my sprint iphone 4 and i do not know what steps to take to get the phone to where i can connect to wifi after putting in the language and country... please help

    Connect it to your computer via the supplied sync cable and restore.

  • I've changed my keyboard language to a forieng language and when MacBook sleep I could not type the actual password in US language

    I've changed my keyboard language to a forieng language and when MacBook sleep I could not type the actual password in US language.. Try alot but no language change key

    What language did you change it to exactly?

  • How to restore the languages in the input sources under 'Language and Text'

    Dear all,
    Recently, I am trying to free up my disk space on my macbook and I downloaded this software call Monolingual. Basically, it removes languages that you do not use to free up the disk space.
    However, I accidentally remove the language that I use which is Japanese and now it seems like I cannot find it anywhere under the input sources of language and text.
    Does anybody know how I can restore everything back to normal?
    Thanks in advance.
    Cheers,
    Alfred

    I think you will have to reinstall your OS.    If you are running Yosemite, see
    OS X Yosemite: Reinstall OS X
    Best to avoid Monolingual and simlar "cleaning" utilties if possible, it is too easy to make mistakes that destroy parts of you system.
    Your problem has nothing to do with your hardware, so in the futue it would be best to use the software forums for similar questions:
    Mac OS & System Software

  • Bought the iphone 5 today, and when i turned it on it made me set up the language and my origin of country. Then it made me set up wi fi settings but my wi fi settings are messed up! Now i can't proceed to press next! Please help!!

    Bought the iphone 5 today, and when i turned it on it made me set up the language and my origin of country. Then it made me set up wi fi settings but my wi fi settings are messed up! Now i can't proceed to press next! Please help!!

    No
    It says ' Your ipj
    your iphone could not be activated because the activation server cannot be reached. try connecting your iphone to itunes to activate it, or try again over the cellular connection in a couple of minutes. You can also try to activate using a Wi-Fi connection.'
    HELP:(

  • My system preferences have suddenly disappeared! I have the language and text icon but that is the only icon that is displayed! where have my system preferences gone and how do i get them back??

    I went to my system preferences today and they are all gone except for my language and text icon! I have the language and text icon but that is the only icon that is displayed! where have my system preferences gone and how do i get them back??

    Double click on the picture of the HD on your desktop, then look at the bottom of the window that opens.
    First check the S.M.A.R.T. status on your HD: Applications > Utilities > Disk Utility > in the panel at left, select the first item in the list/your HD mechanism > look atthe bottom of the main window next to S.M.A.R.T. status and see if it says “Verified” or something more ominous like “Failing.”
    If S.M.A.R.T.status is "Verified," run Repair Disk: Boot from install disc (insert disc > restart > immediately hold down c key and keep holding it until you see “Preparing Installation”) > at first screen select the language and click Continue > click on the Utilities Menu in the menu bar > open Disk Utility > select your HD in the panel on the left side > click Repair Disk at bottom of main window. Run this at least twice, and keep running it until it says “appears ok” twice in a row. If that doesn’t happen, you may need a stronger utility such as DiskWarrior or if the directory is damaged beyond repair, you may need to reinstall the OS, or you may have a damaged HD (repair utilities can only repair the directory structure, not the HD itself). When this is finished, quit Disk Utility, quit the installer, and restart. Once booted normally, go to Applications > Utilities > Disk Utility and run Repair Permissions.

  • Just purchased new ipad.  screen in foreign language and says "Dand dat Ngon ngu.   What's that all about?

    Just purchased new ipad.  screen in foreign language and says "Dang dat Ngon ngu?   What's going on??

    The easiest AND quickest way would be to reset the iPad and start over.
      Reset all settings 
      Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. 

  • I accidently changed my language and I can't get it back to English!

    Please help!

    ''david.abel wrote:''
    On the Firefox home page, the Arabic language has suddenly started to appear
    Is the language for the menus and other user interface elements still English? If so,
    # Click the ≡ Menu Button and choose Preferences.
    # Click the Content icon.
    # Below Languages, click the Choose button.
    # Make sure a specific variant of English like ''en-us'' is at the top, followed by ''en''. Remove any unwanted languages as well.
    [[Settings for fonts, languages, pop-ups, images and JavaScript|Settings for fonts, languages and pop-ups]]
    ''david.abel wrote:''
    Also, my browser history has started to take up part of the screen.
    I don't know what you mean by that. Please attach a screenshot.
    * [[How do I create a screenshot of my problem?]]

  • Hello, I'm a french Photoshop CC user. My one is in english language, and I would like to work with french language. How can I do to have french language ?

    Hello, I'm a french Photoshop CC user. My one is in english language, and I would like to work with french language. How can I do to have french language ?

    In the CC Desktop app, click the gear > Preferences > App tab > choose Application Language, then install Photoshop CC
    Once the install finishes, Photoshop Preferences > Interface > UI Language, change to French, Restart Photoshop.

  • Multi languages and Special Characters in PI

    Hi gurus
    Different languages data will be coming from the source xml file and PI has to handle that data and send it to ECC  system throguh IDoc Receiver Adapter.
    .our scenario is MDM to R/3. Pi file adapter is picking the xml file from source directory path.
    the file encoding we have used is "ISo-8859" file type as "TEXT", we have also tried checking by giving the file name as"Binary", but we are still facing the issue.
    The special characters which are showing up are Å#ó
    i was trying to look at the below mentoined blog , but that blog was not availiale in sdn.
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9420 [original link is broken]
    thanx in advance

    > i tiried as you suggested, but i do not have the access for the RFC destination in R/3 server.
    I mean the RFC destination in PI, not in R/3
    > i have a doubt here
    > In the xml file received by PI, the entire data will be in English, only for two particular fields the data will be in Foreign Languages(russian,greek or any other langauge).The fields are maintained under International Version Segement.
    You have to split the XML, create different IDocs by language and choose an IDoc receiver channel with tied RFC logon language 
    see SAP note 745030
    The customer should consider to use a unicode R/3 system when he wants to use different language descriptions.
    In a non-unicode system the texts from other languages cannot be read, for example the greek characters cannot be displayed when logging on in russian. In a unicode system there is no restriction.

  • Is it possible to download a PDF of "ActionScript 3.0 Language and Components Reference"?

    I have found the "ActionScript 3.0 Language and Components Reference" online fine but my Internet is sometimes slow and I would like to take the reference with me even when I am not connected to the Internet. Is there a way to download a PDF version of this reference and if so, how? Help would be very much appreciated. Thanks

    The second item in the listing, ActionScript 3.0 Reference for the Adobe Flash Platform (ZIP, 66 MB) is a standalone copy of the files that you are looking for.
    Here's an Adobe Community file on how to implement the local help: http://forums.adobe.com/thread/1000134

  • [SOLVED] After a crash, my languages and keyboard layouts are gone!

    So my CPU hanged, I rebooted, unfortunatelly a lot of my personal (and perhaps system) files were corrupted. All my personal GNOME settings were set to default. I had to wipe out the entire ~/.config/dconf folder in order to regain the capability to customize everything again. So all was left behind was my keyboard layout. So I went to `Regions and Languages` and... all but the system language (English) options were gone, including the layouts!
    I just reinstalled the groups gnome and gnome-extra, no to avail
    What can I do?
    edit: stupid me! The layouts were 'hidden' in the tiny window size of the thing!
    Last edited by lmello (2013-07-16 16:59:33)

    Backing up and Restoring Bookmarks
    * https://support.mozilla.com/en-US/kb/Backing%20up%20and%20restoring%20bookmarks
    Importing Bookmarks from an HTML File
    * https://support.mozilla.com/en-US/kb/Importing%20Bookmarks%20from%20an%20HTML%20File
    Lost Bookmarks
    * https://support.mozilla.com/en-US/kb/Lost%20Bookmarks
    Recovering important data from an old profile
    * https://support.mozilla.com/en-US/kb/Recovering%20important%20data%20from%20an%20old%20profile
    Check and tell if its working.

  • HT201407 I have a new device. When selecting the language and country I am trying to connect to a wifi connection and getting the error 'Your Iphone could not be activated because the activation server cannot be reached. Try connecting to your Iphone to i

    I have a new device. When selecting the language and country I am trying to connect to a wifi connection and getting the error 'Your Iphone could not be activated because the activation server cannot be reached. Try connecting to your Iphone to iTunes to activate it, or try again in a few minutes.

    Where exactly did you get this phone?
    Do you have a SIM in the phone?
    There are 2 primary causes for this.
    Either you don't have a SIM in the phone, which is REQUIRED to activate it, or the phone was hacked to unlock it.

Maybe you are looking for

  • How to put drop down box in selection screen

    Hi all, I have to create a selection screen. in that i have to use a drop down box for the text box. how to do that. thanking u. with regards, giri.

  • Quicktime export contains random grey frames

    Lately, doing a straight Quicktime export (not Quicktime conversion) is resulting in movies with random grey frames in them, lasting about 12 frames or so each. This is HD footage, shot on the Panasonic DVX-100. This only seems to happen when exporti

  • Popup message for few seconds

    Hi,       please suggest on how to display a popup window with a message for a few seconds..      ( Ex:   message like "Scanning for records...please wait").

  • How to set Java options in Linux?

    Dear all, I'm using Ubuntu, Java version is 1.6.0.3 I want to run Java with some options changed, such as this in command line: java -server -Xms128m -Xmx512m -Dcom.sun.management.jmxremote.port=8999 -Dcom.sun.management.jmxremote.authenticate=false

  • HT4059 How can I get ibooks on my Ipad 1??

    I cannot load ibooks from the app store onto my Ipad 1.  Please help me find an older version compatible with my iOS