SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: input box not accepting arabic numbers. only text.

  1. #1
    SitePoint Guru afridy's Avatar
    Join Date
    Mar 2007
    Posts
    904
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    input box not accepting arabic numbers. only text.

    Hai folks,

    i use the windows language bar to switch between arabic and english typing.
    i am able to type arabic text in to html input box in my project.
    but when i type arabic nmbers, it's typed in English only. not in arabic.
    why is only input box accepting arabic text and does not numbers?


  2. #2
    Robert Wellock silver trophybronze trophy
    SitePoint Award Recipient xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,243
    Mentioned
    51 Post(s)
    Tagged
    0 Thread(s)
    I would suspect it might be to do with the font or keyboard you are using or what characters the input was allowed to accept. I will presume you have set the language of the page and character set correctly in the markup. (٠‎ - ١‎ - ٢‎ - ٣‎ - ٤‎ - ٥‎ - ٦‎ - ٧‎ - ٨‎ - ٩‎)
    };-) http://www.xhtmlcoder.com/
    Thinking Web: Voices of the Community

    > March 2013 - SitePoint forums: Spot the Error 3: Calling all Sleuths! Winner Announced!... She knows how to spot simple <code> errors but do you?

  3. #3
    SitePoint Guru afridy's Avatar
    Join Date
    Mar 2007
    Posts
    904
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by xhtmlcoder View Post
    I would suspect it might be to do with the font or keyboard you are using or what characters the input was allowed to accept. I will presume you have set the language of the page and character set correctly in the markup. (٠‎ - ١‎ - ٢‎ - ٣‎ - ٤‎ - ٥‎ - ٦‎ - ٧‎ - ٨‎ - ٩‎)
    Hai xhtmlcorder

    it just an ordinary input box with no restriction in input being placed.
    i use the language bar in the system tray to switch between AR (Arabic Saudi arabia) and EN (English).
    The html header has declared UTF8

    Code:
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    see the problem here:

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •