Converting MacRoman to ISO8859...

Bert Freudenberg bert at isg.cs.uni-magdeburg.de
Tue Aug 15 16:14:21 UTC 2000


On Tue, 15 Aug 2000 Steffen.Mueller at phaidros.com wrote:

> I looking for a conversion from Squeaks McRoman character set to ISO-8859...
> (e.g. ISO-8859-1) or UTF-8 character set.

Character>>squeakToIso
	"Convert from Squeak to iso8895-1 encoding.
	Does not do lf/cr conversion!"

	value < 128 ifTrue: [^self].
	^ Character value: (#(196 197 199 201 209 214 220 225 224 226 228
		227 229 231 233 232 234 235 237 236 238 239 241 243 242
		244 246 245 250 249 251 252 185 176 162 163 167 130 182
		223 174 169 142 180 168 173 198 216 141 177 178 179 165
		181 166 183 184 160 188 170 186 189 230 248 191 161 172
		146 128 129 140 171 187 131 190 192 195 213 145 147 208
		132 150 148 149 144 247 215 255 221 152 151 134 153 222
		164 136 135 137 139 138 194 202 193 203 200 205 206 207
		204 211 212 240 210 218 219 217 155 154 133 143 157 156
		158 159 253 254 175) at: value - 127)

-- Bert





More information about the Squeak-dev mailing list