Форум Flasher.ru

Форум Flasher.ru (http://www.flasher.ru/forum/index.php)
-   Интеграция Flash с... (http://www.flasher.ru/forum/forumdisplay.php?f=2)
-   -   System.useCodepage = true что это ? (http://www.flasher.ru/forum/showthread.php?t=41466)

outfoxer 03.01.2003 05:02

System.useCodepage = true что это ?
 
Где можно найти информации об объекте System?, а то все пишут System.useCodepage = true или что-то подобное, а что это такое не понятно ....

Zergy 04.01.2003 10:28

не претендуя на неоспоримую истину
 
Сугубо предположение (мне тока недавно пришлось решать связаную с этим задачу). Мне кажется, что useCodepage = true, включает поддержку флэшем кодировку установленную в твоей HTML странице.

sevast 04.01.2003 23:14

мда
 
СистемююзеКодеПаге :-)
Ребята, это ссылка на ту кодировку, которая в Виндах по умолчанию стоит.

Однако спешу вас огорчить, что при установке винды мало какой пользователь правильно ставит этот самый кодепаге!

И вместо добропорядочной кириллицы - лезет какая-нить (не в обиду японцам) иероглифигичная хрень.

Как грится, легче либо текстовые файлы в уникоде хранить, либо писать перекодировщик на серваке типа что-то ---> UNICODE.

Да и вообще... Уникод рулит. :cool:

iLoveYou 07.01.2003 23:52

А мануальчик почитать?
 
System.useCodepage
Availability
Flash Player 6.
Usage
System.useCodepage
Description
Property; a Boolean value that tells the Flash Player whether to use Unicode or the traditional
code page of the operating system running the Player to interpret external text files. The default
value of system.useCodepage is false.
• When the command is set to false, the Flash Player 6 interprets external text files as Unicode.
(These files must be encoded as Unicode when you save them.)
• When the command is set to true, the Flash Player 6 interprets external text files using the
traditional code page of the operating system running the player.
Text that you include or load as an external file (using the #include command, the
loadVariables or getURL actions, or the LoadVars or XML objects) must be encoded as Unicode
when you save the text file, in order for the Flash Player 6 to recognize it as Unicode. To encode
external files as Unicode, save the files in an application that supports Unicode, such as Notepad
on Windows 2000.
If you include or load external text files that are not Unicode-encoded, you should set
system.useCodepage to true. Add the following code as the first line of code in the first frame
of the movie that is loading the data:
system.useCodepage = true;
When this code is present, the Flash Player 6 interprets external text using the traditional code
page of the operating system running the Flash Player. This is generally CP1252 for an English
Windows operating system and Shift-JIS for a Japanese operating system. If you set
system.useCodepage = true, the Flash Player 6 treats text like the Flash Player 5. Flash 5
treated all text as if it were in the traditional code page of the operating system running the player.
If you set system.useCodepage to true, keep in mind that the traditional code page of the
operating system running the player must include the characters used in your external text file in
order for the text to display. For example, if you load an external text file that contains Chinese
characters, those characters will not display on a system that uses the CP1252 code page, because
that code page does not include Chinese characters. To ensure that users on all platforms can view
external text files used in your movies, you should encode all external text files as Unicode and
leave System.useCodepage set to false by default. This way the Flash Player 6 will interpret the
text as Unicode.

Stary 10.01.2003 22:51

Кажется понятно. юзеКодепаге используется, если ты хочешь вместо юникода юзать кодировку пользователя, как в пятом флеше (фигня получается, как сейчас помню).

Вопрос - если я сохраняю текстовый файл из блокнота - какая это кодировка? Где это посмотреть, как проконтролировать, одним словом - как сохранить файл в Юникоде?

[subway]design 10.01.2003 23:27

Если под Виндой и из блокнота - 100% windows-1251
Продвинутые редакторы умеют сохранять в разных кодировках.

Stary 11.01.2003 00:27

Ну хорошо. А в Юникоде то как сохранить???

А если переменные берутся из php? Это какая кодировка?

iLoveYou 11.01.2003 16:05

ИМХО очень хороший редактор для таких целей - UltraEdit;
Цитата:

А если переменные берутся из php? Это какая кодировка?
Та, в которой сохранен файл.

Nox Noctis 04.04.2003 20:39

о том как определяется формат читаемого флэшем файла

Useless 05.04.2003 13:04

Цитата:

Оригинал написал(а) Stary
Вопрос - если я сохраняю текстовый файл из блокнота - какая это кодировка?
А какую попросишь.
Блокнот может в UTF-8 сохранять - начиная с Win2K, если не ошибаюсь...


Часовой пояс GMT +4, время: 04:31.

Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.