version 1.141, 2002/05/09 03:21:29
|
version 1.142, 2002/06/06 13:59:45
|
Line 243 char *EscapeXML (const char *string)
|
Line 243 char *EscapeXML (const char *string)
|
return (buffer); |
return (buffer); |
} |
} |
|
|
/*---------------------------------------------------------------------- |
|
URLToUTF8 |
|
If such convertion is needed, returns a converted string that the |
|
user must free. |
|
----------------------------------------------------------------------*/ |
|
char *URLToUTF8 (char *url, Document doc) |
|
{ |
|
unsigned char *tmp; |
|
|
|
if (!url || *url == EOS) |
|
return NULL; |
|
|
|
/* does the URL contain chars > 127 ? */ |
|
tmp = url; |
|
while (*tmp) |
|
{ |
|
if (*tmp > 127) |
|
break; |
|
tmp++; |
|
} |
|
|
|
if (*tmp == EOS) |
|
return NULL; /* no such chars found */ |
|
|
|
tmp = TtaConvertIsoToMbs (url, TtaGetDocumentCharset (doc)); |
|
|
|
return tmp; |
|
} |
|
|
|
|
|
/*---------------------------------------------------------------------- |
/*---------------------------------------------------------------------- |
ExplodeURL |
ExplodeURL |