File: euc2unicode.rb

package info (click to toggle)
libuconv-ruby 0.4.9-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,752 kB
  • ctags: 135
  • sloc: ansic: 160,433; xml: 13,060; ruby: 396; makefile: 51
file content (16 lines) | stat: -rw-r--r-- 240 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /usr/local/bin/ruby

require 'uconv'
include Uconv

## ϥɥ
def Uconv.unknown_euc_handler(e)
  ##  (GETA MARK) ִ
  return 0x3013
end

## Хȥޡ
print "\xff\xfe"
while ($<.gets)
  print euctou2($_);
end