Кодировки (не совсем понятно)
Darkman_E34 03.12.2004 11:58
Unhandled Exception
change_case_UTF8 error: end pointers do not match
upper
/var/www/devel.deathlife.kiev.ua/html/_test.html(262)
Вот такое мне выдал Parser3
Я прочитал документацию, не совсем понял, какую роль играют кодировки для Parser'a.
Возникло несколько вопросов:
1. Где взять файл кодировок для UTF-8
2. Правельно ли я понял, что Parser3 перед тем, как отдать что-то клиенту перекодирует в какую-то кодировку.
3. Как избавится от change_case_UTF8 error: end pointers do not match
--- info ---
auto.p (тот, что создался из auto.p.in)
#$Id: auto.p.dist.in,v 1.11 2004/02/13 13:59:51 paf Exp $
@conf[filespec]
$confdir[^file:dirname[$filespec]]
$charsetsdir[$confdir/charsets]
$sqldriversdir[$confdir/lib]
$CHARSETS[
# $.koi8-r[$charsetsdir/koi8-r.cfg]
# $.windows-1250[$charsetsdir/windows-1250.cfg]
# $.windows-1251[$charsetsdir/windows-1251.cfg]
# $.windows-1257[$charsetsdir/windows-1257.cfg]
]
#change your client libraries paths to those on your system
$SQL[
$.drivers[^table::set{protocol driver client
mysql $sqldriversdir/libparser3mysql.so -configure could not guess-
pgsql $sqldriversdir/libparser3pgsql.so /usr/lib/libpq.so
oracle $sqldriversdir/libparser3oracle.so /var/oracle/OraHome1/lib/libclntsh.so?ORACLE_HOME=/var/oracle/OraHome1&ORA_NLS33=/var/oracle/OraHome1/ocommon/nls/admin/data
}]
]
#for ^file:load[name;user-name] mime-type autodetection
$MIME-TYPES[^table::set{ext mime-type
zip application/zip
doc application/msword
xls application/vnd.ms-excel
pdf application/pdf
ppt application/powerpoint
rtf application/rtf
gif image/gif
jpg image/jpeg
jpeg image/jpeg
png image/png
tif image/tiff
html text/html
htm text/html
txt text/plain
xml text/xml
mts application/metastream
mid audio/midi
midi audio/midi
mp3 audio/mpeg
ram audio/x-pn-realaudio
rpm audio/x-pn-realaudio-plugin
ra audio/x-realaudio
wav audio/x-wav
au audio/basic
mpg video/mpeg
avi video/x-msvideo
mov video/quicktime
swf application/x-shockwave-flash
}]
$LIMITS[
$.post_max_size(10*0x400*0x400)
]
#$MAIL[
# $.sendmail[your sendmail command goes here]
# these are tried when no 'sendmail' specified:
# /usr/sbin/sendmail -t -i -f postmaster
# /usr/lib/sendmail -t -i -f postmaster
#]
@fatal_error[title;subtitle;body]
$response:status(500)
$response:content-type[
$.value[text/html]
$.charset[$response:charset]
]
<html>
<head><title>$title</title></head>
<body>
<h1>^if(def $subtitle){$subtitle;$title}</h1>
$body
#for [x] MSIE friendly
^for[i](0;512/8){<!-- -->}
</body>
</html>
@unhandled_exception_debug[exception;stack]
^fatal_error[Unhandled Exception^if(def $exception.type){ ($exception.type)};$exception.source;
<pre>^untaint[html]{$exception.comment}</pre>
^if(def $exception.file){
^untaint[html]{<tt>$exception.file^(${exception.lineno}:$exception.colno^)</tt>}
}
^if($stack){
<hr/>
<table>
^stack.menu{
<tr><td>$stack.name</td><td><tt>$stack.file^(${stack.lineno}:$stack.colno^)</tt></td></tr>
}
</table>
}
]
@unhandled_exception_release[exception;stack]
^fatal_error[Unhandled Exception;;
<p>The server encountered an unhandled exception
and was unable to complete your request.</p>
<p>Please contact the server administrator, $env:SERVER_ADMIN
and inform them of the time the error occurred,
and anything you might have done that may have caused the error.</p>
<p>More information about this error may be available in the Parser error log
or in debug version of unhandled_exception.</p>
]
@unhandled_exception[exception;stack]
#use debug version to see problem details
^unhandled_exception_release[$exception;$stack]
#^unhandled_exception_debug[$exception;$stack]
@auto[]
#source/client charsets
$request:charset[windows-1251]
$response:charset[windows-1251]
$response:content-type[
$.value[text/html]
$.charset[$response:charset]
]
#$SQL.connect-string[
mysql://user:pass@host/db?charset=cp1251_koi8]
#$SQL.connect-string[
pgsql://user:pass@host/db]
#$SQL.connect-string[
oracle://user:pass@service?NLS_LANG=RUSSIAN_AMERICA.CL8MSWIN1251&NLS_DATE_FORMAT=YYYY-MM-DD HH24:MI:SS]
#$SQL.connect-string[
odbc://DSN=datasource^;UID=user^;PWD=password]
- Кодировки (не совсем понятно), Darkman_E34 03.12.2004 11:58
- Ответ, Misha v.3 [M] 03.12.2004 12:53