Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 443221092F for ; Fri, 17 Jan 2014 15:52:43 +0000 (UTC) Received: (qmail 13567 invoked by uid 500); 17 Jan 2014 15:52:39 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 13162 invoked by uid 500); 17 Jan 2014 15:52:37 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 13148 invoked by uid 99); 17 Jan 2014 15:52:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jan 2014 15:52:35 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of timur.kulibaev@gmail.com designates 209.85.128.41 as permitted sender) Received: from [209.85.128.41] (HELO mail-qe0-f41.google.com) (209.85.128.41) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jan 2014 15:52:28 +0000 Received: by mail-qe0-f41.google.com with SMTP id gc15so749165qeb.28 for ; Fri, 17 Jan 2014 07:52:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=TWCoMr8XB6s2CM3JaaQe//OU/ivUdwlrBdxR2NdbcW8=; b=KcTjXUyRvYBNKMV5ZpGcOrBM4WQs6q89duAEjezOYjCPXe1+KqRsqkZh+fUknqmd0l KVfDZy3BayLOVUMGXJ77RGSmn0ohognhBjlXN+3VTjtLLBTEvlD7buzswjav7uvic2V7 Y8Zfyj6VircgpSk2TnOw7Zfw5EKHdljtBwIlslQtcTRgqnn/jqyT62eyHNsgLshug2T7 wv9L3EfyNOM9cTyE7iI5Ki3MEaJPRBc2ovqNO9B8hJShvzJhJyh+1IhnjH+jTIA+1gZz 7mTKJ4Wl8k8tAv7CmOshXpPYpZTeDrVRuVu5STazCAow76ocA8WvplgMJRSAZhciMTUb 4U2w== MIME-Version: 1.0 X-Received: by 10.140.49.130 with SMTP id q2mr3937407qga.83.1389973928080; Fri, 17 Jan 2014 07:52:08 -0800 (PST) Received: by 10.224.204.6 with HTTP; Fri, 17 Jan 2014 07:52:08 -0800 (PST) Date: Fri, 17 Jan 2014 21:52:08 +0600 Message-ID: Subject: Re: Oracle Application Server 10g R3 works fine with RK-1048 codepage but Tomcat 7.0.47 does not. From: =?KOI8-R?B?9MnN1dIg69XMycLBxdc=?= To: Tomcat Users List Content-Type: multipart/alternative; boundary=001a11351e363b148204f02c86d6 X-Virus-Checked: Checked by ClamAV on apache.org --001a11351e363b148204f02c86d6 Content-Type: text/plain; charset=ISO-8859-1 Hello, Chris ! Thank you for your correspondence with me. I misleaded you a lot in the following part: +++For Tomcat 7: lang="ru-RU", content="Oracle UIX", +++charset="UTF-8" type="text/css" Actually, charset="UTF-8" is applied only to link element: Servlet source code does not define contentType. Oracle UIX- based servlet generates UIX-objects (*.uix) dynamically at user calls. UIX-objects are html-pages in fact and their header has no contentType element. It means that Tomcat must itself decide which code page is to be assigned to generated UIX-objects. It's the root of the trouble. I tried to use the following options to force Tomcat works in windows-1251: $ echo $JAVA_OPTS -XX:MaxPermSize=128M -Xms256m -Xmx1024m -Duser.language=ru -Duser.country=RU -Dfile.encoding=Cp1251 <--also CP1251, windows-1251, Windows-1251 but no effect. Also, I added filter: AddDefaultCharsetFilter org.apache.catalina.filters.AddDefaultCharsetFilter encoding system AddDefaultCharsetFilter *.uix but no effect. Developers who created UIX-servlet left our company. I'm not Java programmer. Is there any way to force Tomcat 7 implement dynamically generated UIX-objects by single-byte contentType ? Now actual contentType is Unicode. In your previous letter you put a number of questions, so to make my message as short as possible I answer to all your questions in attached file. Please see one also. thank you, Timur --001a11351e363b148204f02c86d6--