If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Problems with charset...

Problems with charset...

Started by ghatien on 1 Dec 2012, 12:20 AM · Views: 823

Results 1 to 7 of 7
1 Dec 2012, 12:20 AM
#1
ghatien avatar

ghatien

New Zenner

Join Date:
Jul 2012
Posts:
11
Plugin Contributions:
0

Post #1 by ghatien

Hi everybody,

I need help to understand what's happening with my store.

I'm building a whole new store using v1.5.1... because there wasn't any portuguese language pack availabe for this version, I've translated it myself and everything's good...

Now, when I started adding the products a problem occurred... the special characters used in portuguese language (such as á,í,ç) don't appear right on the store (but they were good at the admin). So I changed on the includes/languages/portugues.php file the define('CHARSET', 'iso-8859-1'); to define('CHARSET', 'utf-8');.

With this change the products star appearing with the wright characters but other words on the store don't, for exampla the "Sales Message Goes Here" in portuguese language of my store it has special characters and they are wrong. here's two pictures of the problem, using iso-8859-1 and utf-8

please help me because i've already deleted an entire problem because of this store

any ideas will be welcome because I just can't have any

Attachment 11561

Attachment 11562

thank you

1 Dec 2012, 1:52 AM
#2
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,827
Plugin Contributions:
29

Post #2 by balihr

You'll have to save EACH file from the portugese language pack in utf8 encoding. You're having this problem because the files in your language pack are saved using Latin encoding and you're forcing UTF8 on the site...

My site - Pro ZC Help
My portfolio | My plugins

1 Dec 2012, 1:26 PM
#3
ghatien avatar

ghatien

New Zenner

Join Date:
Jul 2012
Posts:
11
Plugin Contributions:
0

Post #3 by ghatien

How do I save the files in utf-8? I edit the files using Frontpage or Notepad...

1 Dec 2012, 1:38 PM
#4
ghatien avatar

ghatien

New Zenner

Join Date:
Jul 2012
Posts:
11
Plugin Contributions:
0

Post #4 by ghatien

Bahlir, thank you very much... problem solved...

for those who like me are very bad at this, in notepad go to Save As and at bottom is Encoding...

2 Dec 2012, 9:04 PM
#5
ghatien avatar

ghatien

New Zenner

Join Date:
Jul 2012
Posts:
11
Plugin Contributions:
0

Post #5 by ghatien

Hi Bahlir,

I hope that you can help me again...

I tested your solution with the utf-8 encoding in a few languages files, I saw that it worked a and changed all files. I've transfer them (filezilla) I now I have another problem... all the text increased on the portuguese language...

You can check it on http://impressao.aplaudebio.pt

toggle between the English Language and the Portuguese Language and see the diferent text size...

Any ideas what could be making this?

3 Dec 2012, 1:27 AM
#6
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,827
Plugin Contributions:
29

Post #6 by balihr

ghatien:

Hi Bahlir,

I'm not bahlir... :wink2:

toggle between the English Language and the Portuguese Language and see the diferent text size...
Any ideas what could be making this?
Looks the same to me on both languages, the only thing is that you're missing some translations. But, font size seems to be the same...

My site - Pro ZC Help
My portfolio | My plugins

3 Dec 2012, 5:01 AM
#7
ghatien avatar

ghatien

New Zenner

Join Date:
Jul 2012
Posts:
11
Plugin Contributions:
0

Post #7 by ghatien

Hi balihr,

Sory for misspelling your name... my head is not working properly anymore...

can you please check http://print.aplaudebio.pt ? toggle between languages and check the different font sizes on portuguese languages...

it seems to have something to have with the fact that I saved the files with utf-8 encoding (the portuguese language files), but it doesn't happen with all the files... need some help because smoke is coming out of my head trying to understante this...