From: Yura Kalinichenko <yuk@kalina.in.ua>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] php5 LC_CTYPE strtolower
Date: Mon, 17 Nov 2008 09:09:23 +0200
Message-ID: <492118A3.7080204@kalina.in.ua> (raw)
In-Reply-To: <91dc8dbf0811161114n18d2e883nf3b676c3fd466768@mail.gmail.com>
Ilis пишет:
> Не работает преобразование в нижний регистр кириллицы:
Для корректной работы с UTF следует использовать mb_-функции (пакет
php5-mbstring). Для вашего случая работает следующее:
<?php
$CHARSET="UTF-8";
$INT_CHARSET="UTF-8";
$LANG="ru_RU.UTF-8";
// main()
mb_internal_encoding($INT_CHARSET);
setlocale(LC_ALL, $LANG);
echo "<HTML><HEAD><meta content='text/html; charset=$CHARSET' http-equiv='Content-Type'><TITLE>Test</TITLE><BODY>";
echo 'Current PHP version: ' . phpversion() . "<BR>";
print mb_convert_case ( "qQrRфФяЯ", MB_CASE_LOWER);
?>
</BODY>
</HTML>
--
SY,
Yura Kalinichenko
next prev parent reply other threads:[~2008-11-17 7:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-16 19:14 Ilis
2008-11-16 23:25 ` Dmitry Lebkov
2008-11-17 7:09 ` Yura Kalinichenko [this message]
2008-11-17 7:31 ` Ilis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=492118A3.7080204@kalina.in.ua \
--to=yuk@kalina.in.ua \
--cc=community@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git