It also affects legal names:
--#!/usr/bin/env ruby -Ku
Ï€ = Math:
I∆ = -(Time.now - Time.now)℞ = "300mg Xanax"def √(n) Math.sqrt(n) enddef ∛(n) n**(1/3.0) end
puts "π = #{π}" # Piputs "∆ = #{∆}" # Deltaputs "℞ = #{℞}" # Perscription symbolputs "√ 144 = #{√ 144}" # Square root symbolputs "∛ 27 = #{∛ 27}" # Cube root symbol--
The preceding script only runs properly with the kcode set to utf-8,due to the unusual variable and method names (some of which may beunreadable on some systems).
It seems there might be other effects, to; but basically setting thekcode should make ruby "really like" the character encoding.
cheers,Mark