..:: MX Studio Fóruns ::..: Arquivo xml não acentua - ..:: MX Studio Fóruns ::..

Jump to content

Publicidade




Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Arquivo xml não acentua

#1 User is offline   Kmelek 

  • Group: Membros
  • Posts: 287
  • Joined: 20-October 05

Posted 06 September 2009 - 10:30 AM

Consegui um template em flash que veio com va´rios arquivos xml.
Ao trocar os textos pelos que quero usar no arquivo xml depois de salvar os textos que tem acentos ou cedilhas, til, não aparecem.
Já salvei no formato ANSI, Unicode, UTF-8 e nenhum funciona.
O interessante é que tudo funciona perfeitamente , apenas os textos ficam errados.
Há também arquivos txt, que é onde vão os textos.
Alguem tem a solução.
Segue o codigo xml e e o texto do arquivo txt para avaliação.

Arquivo "about.txt"
_____________________________________________________
mageName=about_content/about.jpg&

&contentText=<font color="#CCCC33">ABOUT THIS TEXT</font>
<br>This text is loaded dynamically from an external file called about.txt. This text can also be customized in many ways including color, font, size, etc.<br><br>If the text is longer than the height of the mask, the scrollbar appears, which scrolls with an adjustable ease.<br><br>The text is also mousewheel scrollable, meaning you can use your mouse wheel to scroll through it.
<font color="#CCCC33"><br>WHAT IS LOREM IPSUM</font>
<br>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
<font color="#CCCC33"><br>WHERE IT COMES FROM</font>
<br>Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.
<font color="#CCCC33"><br>WHY DO WE USE IT</font>
<br>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).
&

______________________________________________________



Arquivo xml (1 deles):




<!--
-----------------------------------------------------------------------
INDEX - MAIN XML:
-----------------------------------------------------------------------

|||||||MAIN ATTRIBUTES|||||||||||||||||||||||||||||||||||||||||||||||||

introTitleText == Text for the title in the "intro" scene
introTitleTextColor == Color of the title in "intro" scene
titleText == Text for the main title in the "main" scene
titleTextColor == Color of the title in the "main" scene
settingsText == Text in the settings menu
settingsTextColor == Color of the text in the settings menu
menuSpacer == Space between each menu button
darken == Menu number of when to darken background

|||||||MENU ATTRIBUTES||||||||||||||||||||||||||||||||||||||||||||||||

menuText == Text for menu button
menuColorOut == Color of menu button when mouse is NOT over
menuColorOver == Color of menu button when mouse IS over
menuPath == Path when SWF File is located

-----------------------------------------------------------------------
-->

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<main
introTitleText = "FULLSCREEN TEMPLATE V.2"
introTitleTextColor = "0xFFFFFF"
titleText = "FULLSCREEN TEMPLATE V.2"
titleTextColor = "0xFFFFFF"
settingsText = "FULLSCREEN TEMPLATE V.2"
settingsTextColor = "0xCCCC33"
menuSpacer = "25"
darken = "4">

<menu>
<menuText>HOME</menuText>
<menuColorOut>0xFFFFFF</menuColorOut>
<menuColorOver>0xCCCC66</menuColorOver>
<menuPath>home.swf</menuPath>
</menu>
<menu>
<menuText>ABOUT US</menuText>
<menuColorOut>0xFFFFFF</menuColorOut>
<menuColorOver>0xCCCC66</menuColorOver>
<menuPath>about.swf</menuPath>
</menu>
<menu>
<menuText>NEWS</menuText>
<menuColorOut>0xFFFFFF</menuColorOut>
<menuColorOver>0xCCCC66</menuColorOver>
<menuPath>news.swf</menuPath>
</menu>
<menu>
<menuText>WORK</menuText>
<menuColorOut>0xFFFFFF</menuColorOut>
<menuColorOver>0xCCCC66</menuColorOver>
<menuPath>work.swf</menuPath>
</menu>
<menu>
<menuText>CONTACT US</menuText>
<menuColorOut>0xFFFFFF</menuColorOut>
<menuColorOver>0xCCCC66</menuColorOver>
<menuPath>contact.swf</menuPath>
</menu>
</main>

0

#2 User is offline   xanburzum 

  • Group: Administrador
  • Posts: 2076
  • Joined: 04-November 08

Posted 11 September 2009 - 10:43 PM

o arquivo xml deve estar setada com o mesmo charset (UTF / "ISO-8859-1" / etc)

Basta setar o charset da página ,

<% Response.Charset="ISO-8859-1" %>

isso em ASP
0

#3 User is offline   coldplayer 

  • Group: Membros
  • Posts: 2
  • Joined: 31-August 10

Posted 31 August 2010 - 05:34 PM

View Postxanburzum, on 11 September 2009 - 10:43 PM, said:

o arquivo xml deve estar setada com o mesmo charset (UTF / "ISO-8859-1" / etc)

Basta setar o charset da página ,

<% Response.Charset="ISO-8859-1" %>

isso em ASP


Podes tornar isto mais claro?Pelos vistos estou a usar o mesmo template e não consigo fazer aparecer caracteres.

Ajuda-me por favor se puderes, o que queres dizer com o charset?onde colocar isso?

Obrigado desde já
0

#4 User is offline   xanburzum 

  • Group: Administrador
  • Posts: 2076
  • Joined: 04-November 08

Posted 01 September 2010 - 09:39 AM

dá uma olhada aqui, pode te ajudar
coloque o <% Response.Charset="ISO-8859-1" %> no inicio da página
0

#5 User is offline   coldplayer 

  • Group: Membros
  • Posts: 2
  • Joined: 31-August 10

Posted 01 September 2010 - 11:00 AM

View Postxanburzum, on 01 September 2010 - 09:39 AM, said:

dá uma olhada aqui, pode te ajudar
coloque o <% Response.Charset="ISO-8859-1" %> no inicio da página



Desde já agradeço a tua resposta.

Mas eu não tou a trabalhar em asp mas em xml, podes dar uma olhada nos ficheiros?

http://rapidshare.co...s_site.rar.html

Obridado
0

#6 User is offline   xanburzum 

  • Group: Administrador
  • Posts: 2076
  • Joined: 04-November 08

Posted 01 September 2010 - 07:38 PM

precisamos informar ao arquivo XML o conjunto de caracteres usado. Par isso vamos acrescentar mais um parâmetro na linha que definimos a versão do XML. Ela vai ficar assim:

<?xml version="1.0" encoding="ISO-8859-1" ?>

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic



Publicidade




1 User(s) are reading this topic
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)