Author Topic: Encoding problems  (Read 8424 times)

0 Members and 1 Guest are viewing this topic.

Offline alekseyn

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • http://aleksey.h1.ru/4images
Encoding problems
« on: July 04, 2002, 06:38:09 PM »
I have translated the gallery into Russian and here is the problem I encountered:  The pages in admin area and in users area are not showing up in correct encoding in my case it is Cyrillic (windows). instead it is showing Western european.  is there a way of fixing it for

1. all pages
or i have to change
2. every page of the templates.

Another thing is that I would like to set my gallry to enable users to change from Russian into English and in this case option 2 is not acceptable.

If i edit the header and put http://mysite/?l=russian and http://mysite/?l=english would that work?

Thank you in advance.
Aleksey

PS if anyone needs the russian language pack I will be glad to send it to you.

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Encoding problems
« Reply #1 on: July 04, 2002, 10:45:36 PM »
hi,
i'm not sure, but
try this in header.html
Code: [Select]

<html>
<head>
<title>{site_name}</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">

instead of
Code: [Select]

<!-- <?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de" dir="ltr"> -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="ltr">
<head>
<title>{site_name}</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />


if you do that, english spoken peoples will see with ?l=english only binary chars (галерея)
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline alekseyn

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • http://aleksey.h1.ru/4images
Thank you for your reply!
« Reply #2 on: July 05, 2002, 05:04:01 AM »
Everything is working for me now.  I have changed
iso-8859-1 in the second piece of code in your reply and changed it to
windows-1251 and it all worked!!

By the way if i modify the header to show two additional links, whould they show on user front page?

There is a problem with naming the images in cyrilic chars, it shows a bunch of #3565; and so on.  Is there  a solution to that?
____________

Guys, this is the best script I found of the Internet.  I love it!!  And believe me I've been trying to find the easiest and yet powerful gallery for myself and this is the one I'm sticking with!!
Keep up the great work!! Thank you.
Aleksey
_______________

Offline alekseyn

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • http://aleksey.h1.ru/4images
Encoding problems
« Reply #3 on: July 05, 2002, 07:57:43 AM »
Problem solved by changing the encoding in admin/admin_functions.php :lol:

Offline fotograf

  • Newbie
  • *
  • Posts: 26
    • View Profile
Encoding problems
« Reply #4 on: August 28, 2002, 04:36:44 PM »
I want to have ability to use Russian in discription and search. I dont need in Russia interfase, but I want discribe pictures in Russian.  Help please.
My English too bad.

Offline alekseyn

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • http://aleksey.h1.ru/4images
Encoding problems
« Reply #5 on: August 28, 2002, 05:48:18 PM »
Hi,

change the encoding to "windows-1251" in header.html and it should work!

Aleksey

Offline fotograf

  • Newbie
  • *
  • Posts: 26
    • View Profile
Encoding problems
« Reply #6 on: August 29, 2002, 09:19:55 AM »
Thats all ?!?
My English too bad.

Offline fotograf

  • Newbie
  • *
  • Posts: 26
    • View Profile
Encoding problems
« Reply #7 on: August 29, 2002, 09:33:07 AM »
Thank you for advise !!!! Will try it.
My English too bad.

Offline fotograf

  • Newbie
  • *
  • Posts: 26
    • View Profile
Encoding problems
« Reply #8 on: September 05, 2002, 11:17:28 AM »
I make this changes and some problems disaapeaed, I can write comments in Russian, but the main thing -  ability to write discription in Russian dont work, what intresting  - IPTC info I see correctly in Russian, but when I press button to move this information in discription field letters changed in ????.  Is it possible to solve this problemm/ If somebody can help me , and  can write in Russian, please use my e-mail rezerv_foto2@pisem.net.
My English too bad.