Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/outlook2gcal/string.rb

Instance Method Summary collapse

Instance Method Details

#asciifyObject



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/outlook2gcal/string.rb', line 4

def asciify()
  str = self
  # ----------------------------------------------------------------
  # Umlauts
  # ----------------------------------------------------------------
=begin
  str = str.gsub(/\334/,"Ü")  # 
  str = str.gsub(/\374/,"ü") # 
  str = str.gsub(/\326/,"Ö") # 
  str = str.gsub(/\366/,"ö") # 
  str = str.gsub(/\304/,"Ä") # 
  str = str.gsub(/\344/,"ä")  # 
  str = str.gsub(/\337/,"ß") # 
  str = str.gsub(/>/,">")
  str = str.gsub(/</,"&lt;")
  # bez_neu = Iconv.conv('UTF-8','CP850', bez_neu)
  #str = str.gsub(/([^\d\w\s\.\[\]-])/, '')
=end
  return str.encode('UTF-8')
end