Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
57 user(s) are online (46 user(s) are browsing Forums)

Members: 1
Guests: 56

samo79, more...

Support us!

Headlines

 
  Register To Post  

YAM sending html files containing non-breaking blanks
Just can't stay away
Just can't stay away


See User information
I did note that html files sent as attachments with YAM do transform a string of nonbreaking blanks as some  containing strings
eg the line
"NBSstart             NBSstop"
when returned with mail addressed to me
appears as
"NBSstart             NBSstop" in CED the blanks here appear as a square
In IBrowse the line is presented as.
NBSstartÃfÂ,Ã, ÃfÂ,Ã, ÃfÂ,Ã, ÃfÂ,Ã, ÃfÂ,Ã, ÃfÂ,Ã, ÃfÂ,Ã, ÃfÂ,Ã, ÃfÂ,Ã, ÃfÂ,Ã, ÃfÂ,Ã, ÃfÂ,Ã, ÃfÂ,Ã, NBSstop

Of course i could use  , but in presenting math logic, just typing in nbsp with Alt_Blank is so much clearer.

Is this a YAM problem ?


Edit: it seems to be the case & was handed over to the YAM team as a "ticket"


Edited by JosDuchIt on 2015/5/13 11:03:51
Go to top
Re: YAM sending html files containing non-breaking blanks
Home away from home
Home away from home


See User information
@JosDuchIt

That's an encoding issue. the   is being converted into utf-8 at some point in the process.

Do you see it like this in code sent *to* you? Or when others recive code *from* you?

Try typing   rather than inserting the actual character?  




Go to top
Re: YAM sending html files containing non-breaking blanks
Just can't stay away
Just can't stay away


See User information
@broadblues
- of course inserting   will be sent properly
- i first noticed the problem when i did send a mail (with YAM) to my wife's PC. The attached file when downloaded & opened in a browser did show the transformed characters, not blanks
- checks i did :
1) sent the same file with simplemail to my wife's PC: here the attached file when downloaded is presented correctly in Chrome or Firefox
2) put the file on an USB stick & see what the PC makes of it. Chrome & Firefox do see the file correctly.
3) send the file from my wife's PC back to me (using hotmail)
The file can be seen correctly on my SAM

So i concluded it is a YAM problem & handed it over to the YAM team


http://yam.ch/ticket/600

Go to top
Re: YAM sending html files containing non-breaking blanks
Home away from home
Home away from home


See User information
@JosDuchIt

Looking at what YAM sends:

Quote:

----=_BOUNDARY.57aa1dd032618d47.54
Content-Type: text/html; charset=ISO-8859-1;
name="nbsp_test.html"
Content-Disposition: attachment;
filename="nbsp_test.html";
size=32
Content-Transfer-Encoding: quoted-printable

<html>
start=A0=A0=A0=A0=A0=A0=A0=A0stop
</html>
----=_BOUNDARY.57aa1dd032618d47.54
Content-Type: text/plain; charset=ISO-8859-1;
name="nbsp_test.txt"
Content-Disposition: attachment;
filename="nbsp_test.txt";
size=17
Content-Transfer-Encoding: quoted-printable

start=A0=A0=A0=A0=A0=A0=A0=A0stop
----=_BOUNDARY.57aa1dd032618d47.54--


That's perfectly formed quoted printable.

The problem is lthat your PC is decoding it as utf-8 even though it's clearly marked as ISO-8859-1 then as your html contains no encoding itself it displays the utf-8 characters as individual octets.

This is properly fixed by using &nbsp; you *should not* include non ascii characters in an html document without setting the encoding.


Go to top
Re: YAM sending html files containing non-breaking blanks
Just can't stay away
Just can't stay away


See User information
@Broadblues
I understand what you are saying but do observe
- that the files sent to myself (yam as sender & receiver) when saved after reception are not viewed correctly on any browser on my system.
- when i do the same using simplemail the returned & saved files are exact copies of the original non-encoded ones. Simplemail is using base64 encoding though
Shouldn't yam decode properly when saving attachments? Is this a limitation of the "quoted-printable" encoding ?
Going to check if YAM has a settings for selecting the coding
edit: checked but did not find such setting
I noted though that whereas in YAM/settings/firststeps/charset is set to ISO-8859-15 the sent mail seems to use ISO-8859-1

----=_BOUNDARY.5efd37f068e04a7c.ed
Content-Type: text/plain; charset=ISO-8859-1;
name="nbsp_test.txt"
Content-Disposition: attachment;
filename="nbsp_test.txt";
size=17
Content-Transfer-Encoding: quoted-printable

start=A0=A0=A0=A0=A0=A0=A0=A0stop
--




Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project