Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
Menu
Handling International Encodings : KCODE « Development « Ruby
Ruby
Development
KCODE
Handling International Encodings
$KCODE=
'u'
require
'jcode'
$ ruby -Ku -rjcode
Related examples in the same category
1.
Setting the $KCODE global variable to 'u' and loading jcode gives regular expressions awareness of UTF-8 characters
2.
Using jcode you can make regular expressions UTF-8 aware
3.
$KCODE Demo
4.
$KCODE = 'u'
5.
Check string size for non ascii code
6.
Count non-ascii string
7.
Length of non-ascii string