SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: $kcode ?

  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2004
    Location
    hyderabad
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    $kcode ?

    Hi ,

    I am reading o'reilly Ruby cook book..

    The below line which i come across..

    "Note that the "\w" character set matches different things depending on the value of $KCODE."

    What is $KOCDE?. and why? how ? and where follows naturally.

    Thanks in advance.
    Sharma

  2. #2
    SitePoint Zealot daveporter's Avatar
    Join Date
    Mar 2002
    Location
    Perth, Western Australia
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Sharma,

    Found this !

    -K kcode
    ' Specifies the code set to be used. This option is useful mainly when Ruby is used for Japanese-language processing. kcode may be one of: e, E for EUC; s, S for SJIS; u, U for UTF-8; or a, A, n, N for ASCII.

    regards, Dave

  3. #3
    SitePoint Enthusiast
    Join Date
    Jan 2004
    Location
    hyderabad
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    HI Dave,

    Thanks for the reply. It seems This KCODE is mainly useful for multi language support of the application. Is there any link that you know which will explain in detail.

    sharma

  4. #4
    SitePoint Zealot daveporter's Avatar
    Join Date
    Mar 2002
    Location
    Perth, Western Australia
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I Just googled that 'ruby $kcode' - I think, and found the text I pasted for you - but that was about it.
    But I didn't did too deep !
    Dave


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
  •