Changing character sets in text fields

Ruslan Zasukhin sunshine at public.kherson.ua
Fri Aug 13 21:45:35 CDT 2004


On 8/13/04 9:17 PM, "Ben Rubinstein" <benr_mc at cogapp.com> wrote:

>>> Is this possible using VXCMD?
>> 
>> I think yes.
>> 
>> Please look int Database_Create() method docs.
> 
> This is where I thought it would be, but the docs list only parameters to
> set number of files and segment size.

This means that VXMCD do not have access to this parameter.

If you going preapre db just once, you can create empty one by vl Studio,
and later open it in VXCMD.


>>> And if this is done, then using the example of creating Windows format
>>> native db on Mac, would it be the case that text inserted on the Mac would
>>> be assumed to be in MacRoman, and converted before storage into some Windows
>>> format?  (And btw, what is the format that is used on Windows?  CP1250?
>>> ISO-8859-1?  Or is it sensitive to the localisation of the version of
>>> Windows?)
>> 
>> Yes, Valentina will expect from you Mac Western,
>>   but when write it on disk Valentina will convert it to Latin-1
>> 
>> Win Format Is not sensitive.
>> I think it is ISO-8859-1
> 
> OK, thanks.  What does Valentina do for characters that don't convert, ie
> that are only in what it presumes to be the source character set, but which
> don't exist in the storage character set?

I think it not map it.

Ben, I have use simple map to convert,
Which I have take from Director

;=================================================================

;

; CHARACTER MAPPINGS

;

; Character mapping ensures that characters such as bullets,

; quote marks, and accented characters always appear correctly

; when text is moved from one platform to another.  When a

; character is mapped, a different ASCII value is substituted

; in order to preserve the appearance of the character.

;

; Character mappings are used for all fonts EXCEPT those declared

; above as Map None.

;

; The format for character mappings is:

;

; Platform: => Platform:  oldChar => oldChar ...

;

; The following table provides a full set of bi-directional

; mappings for all ASCII values between 128 and 255.

;

; Note: Some characters are not available in both character sets.

; However, the bi-directional mapping table below preserves these

; characters even if they are mapped to a different platform and

; later re-mapped back to the original platform.



Mac: => Win: 128=>196 129=>197 130=>199 131=>201 132=>209 133=>214 134=>220

Mac: => Win: 135=>225 136=>224 137=>226 138=>228 139=>227 140=>229 141=>231

Mac: => Win: 142=>233 143=>232 144=>234 145=>235 146=>237 147=>236 148=>238

Mac: => Win: 149=>239 150=>241 151=>243 152=>242 153=>244 154=>246 155=>245

Mac: => Win: 156=>250 157=>249 158=>251 159=>252 160=>134 161=>176 162=>162

Mac: => Win: 163=>163 164=>167 165=>149 166=>182 167=>223 168=>174 169=>169

Mac: => Win: 170=>153 171=>180 172=>168 173=>141 174=>198 175=>216 176=>144

Mac: => Win: 177=>177 178=>143 179=>142 180=>165 181=>181 182=>240 183=>221

Mac: => Win: 184=>222 185=>254 186=>138 187=>170 188=>186 189=>253 190=>230

Mac: => Win: 191=>248 192=>191 193=>161 194=>172 195=>175 196=>131 197=>188

Mac: => Win: 198=>208 199=>171 200=>187 201=>133 202=>160 203=>192 204=>195

Mac: => Win: 205=>213 206=>140 207=>156 208=>173 209=>151 210=>147 211=>148

Mac: => Win: 212=>145 213=>146 214=>247 215=>215 216=>255 217=>159 218=>158

Mac: => Win: 219=>164 220=>139 221=>155 222=>128 223=>129 224=>135 225=>183

Mac: => Win: 226=>130 227=>132 228=>137 229=>194 230=>202 231=>193 232=>203

Mac: => Win: 233=>200 234=>205 235=>206 236=>207 237=>204 238=>211 239=>212

Mac: => Win: 240=>157 241=>210 242=>218 243=>219 244=>217 245=>166 246=>136

Mac: => Win: 247=>152 248=>150 249=>154 250=>178 251=>190 252=>184 253=>189

Mac: => Win: 254=>179 255=>185



Win: => Mac: 128=>222 129=>223 130=>226 131=>196 132=>227 133=>201 134=>160

Win: => Mac: 135=>224 136=>246 137=>228 138=>186 139=>220 140=>206 141=>173

Win: => Mac: 142=>179 143=>178 144=>176 145=>212 146=>213 147=>210 148=>211

Win: => Mac: 149=>165 150=>248 151=>209 152=>247 153=>170 154=>249 155=>221

Win: => Mac: 156=>207 157=>240 158=>218 159=>217 160=>202 161=>193 162=>162

Win: => Mac: 163=>163 164=>219 165=>180 166=>245 167=>164 168=>172 169=>169

Win: => Mac: 170=>187 171=>199 172=>194 173=>208 174=>168 175=>195 176=>161

Win: => Mac: 177=>177 178=>250 179=>254 180=>171 181=>181 182=>166 183=>225

Win: => Mac: 184=>252 185=>255 186=>188 187=>200 188=>197 189=>253 190=>251

Win: => Mac: 191=>192 192=>203 193=>231 194=>229 195=>204 196=>128 197=>129

Win: => Mac: 198=>174 199=>130 200=>233 201=>131 202=>230 203=>232 204=>237

Win: => Mac: 205=>234 206=>235 207=>236 208=>198 209=>132 210=>241 211=>238

Win: => Mac: 212=>239 213=>205 214=>133 215=>215 216=>175 217=>244 218=>242

Win: => Mac: 219=>243 220=>134 221=>183 222=>184 223=>167 224=>136 225=>135

Win: => Mac: 226=>137 227=>139 228=>138 229=>140 230=>190 231=>141 232=>143

Win: => Mac: 233=>142 234=>144 235=>145 236=>147 237=>146 238=>148 239=>149

Win: => Mac: 240=>182 241=>150 242=>152 243=>151 244=>153 245=>155 246=>154

Win: => Mac: 247=>214 248=>191 249=>157 250=>156 251=>158 252=>159 253=>189

Win: => Mac: 254=>185 255=>216






-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list