Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2018
    Location
    Sweden
    Posts
    4
    Plugin Contributions
    0

    red flag About faulty characters in email template (swedish åäö)

    Hi!

    New here. I would just like to ask a question. I got 1.5.5f with Swedish translation. Everything works splendid with one exception.

    The email templates. This is a example:

    Detta �r ett automatiskt e-postmeddelande fr�n din Zen Cart butik f�r att varna dig om en f�r�ndring som bara gjordes f�r dina administrativa inst�llningar:

    NOTERA: Admin inst�llningarna har �ndrats f�r [paypal] modulen, av din Zen Cart admin anv�ndare {Niklas[1]}.

    Om du inte har gjort dessa �ndringar, �r det rekommenderat att du kontrollerar dina inst�llningar.

    �r du redan medveten om dessa �ndringar, kan du ignorera detta automatiska meddelande.





    The strange thing is that both front and backoffic shows the right characters. Also if i write something personal in the mail, it also works.. Like this. I wrote åäö and it shows.

    "åäö
    Denna epost adress har vi f�tt av dig eller av n�gon som anv�nt den i var webbshopp. Om du k�nner att detta mail har n�tt dig felaktigt, v�nligen kontakta oss info@carscan.se

    Detta mail f�ljer de best�mmelser som finns i bland annat US CAN-SPAM Lagen 2004-01-01. Borttagningsbeg�ran kan skickas till denna adress och det kommer att respekteras."





    What is the problem you think? Greatful for any help!

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    6,562
    Plugin Contributions
    8

    Default Re: About faulty characters in email template (swedish åäö)

    You might want to look at the second post in the similar threads below \/ \/ \/

    If that does not do the trick, it could be your host's setttings. See the fourth post below \/ \/ \/

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    7,681
    Plugin Contributions
    64

    Default Re: About faulty characters in email template (swedish åäö)

    See this article that I wrote on the character-set "woes": https://vinosdefrutastropicales.com/blog/?p=309

    I think the issue is that you're running your store with 'utf-8' characters for display, but your Swedish language translations are in ASCII text files.

  4. #4
    Join Date
    Jun 2018
    Location
    Sweden
    Posts
    4
    Plugin Contributions
    0

    Default Re: About faulty characters in email template (swedish åäö)

    Thank you!

    My public_html/includes/languages/swedish.php is set to @setlocale(LC_TIME, 'sv_SE.UTF-8');

    I know my server is UTF-8 and database should is also the same. I get quite confused about this since there are so many places to set language.


    And I´m not sure how to check the email template? which file is that?

    It is starnge since everything else works.. I will check your site, Thanks!

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    7,681
    Plugin Contributions
    64

    Default Re: About faulty characters in email template (swedish åäö)

    Quote Originally Posted by Niklas View Post
    Thank you!

    My public_html/includes/languages/swedish.php is set to @setlocale(LC_TIME, 'sv_SE.UTF-8');

    I know my server is UTF-8 and database should is also the same. I get quite confused about this since there are so many places to set language.


    And I´m not sure how to check the email template? which file is that?

    It is starnge since everything else works.. I will check your site, Thanks!
    Your email templates are stored in the store's /email directories. You probably have an email/swedish sub-directory, that is where the "ASCII" templates appear to live.

  6. #6
    Join Date
    Jun 2018
    Location
    Sweden
    Posts
    4
    Plugin Contributions
    0

    Default Re: About faulty characters in email template (swedish åäö)

    I am extremely confused now. When I run this tool it says "Current DB character-set: utf8".


    I found the file itself in "public_html/spenD-vwH-fIrst/includes/languages/swedish/email_extras.php


    In this file it says like this (example)

    "Denna epost adress har vi fått av dig eller av någon som använt den i var webbshopp"


    And becomes like this:

    "Denna epost adress har vi f�tt av dig eller av n�gon som anv�nt den i var webbshopp."


    it does not matter if I use special characters like (exaple) "Utför nödvändiga ändringar"


    The most strange thing is that in almost all other files these html symbols are used. Everything is good and showing åäö except this file.


    How can this be?


    This is the file

    "<?php
    /**
    * @package admin
    * @copyright Copyright 2003-2011 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: email_extras.php 18698 2011-05-04 14:50:06Z wilt $
    */
    /*
    * Zen Cart version 1.5.0 -
    * @Swedish Translation 2011 - Signs FrilansReklam, www.frilansreklam.se
    * @Swedish support - www.zencart.nu - Svenska Zen Cart
    */
    // office use only
    define('OFFICE_FROM','Från:');
    define('OFFICE_EMAIL','Epost:');

    define('OFFICE_SENT_TO','Skickat Till:');
    define('OFFICE_EMAIL_TO','Epost:');
    define('OFFICE_USE','Affärsmässig användning endast:');
    define('OFFICE_LOGIN_NAME','Inloggning Namn:');
    define('OFFICE_LOGIN_EMAIL','Inloggning epost:');
    define('OFFICE_LOGIN_PHONE','<strong>Telefon:</strong>');
    define('OFFICE_IP_ADDRESS','IP Adress:');
    define('OFFICE_HOST_ADDRESS','Webbhotell Adress:');
    define('OFFICE_DATE_TIME','Datum & Tid:');

    // email disclaimer
    define('EMAIL_DISCLAIMER', 'Denna epost adress har vi fått av dig eller av någon som använt den i var webbshopp. Om du känner att detta mail har nått dig felaktigt, vänligen kontakta oss %s');
    define('EMAIL_SPAM_DISCLAIMER','Detta mail följer de bestämmelser som finns i bland annat US CAN-SPAM Lagen 2004-01-01. Borttagningsbegäran kan skickas till denna adress och det kommer att respekteras.');
    define('EMAIL_FOOTER_COPYRIGHT','Copyright (c) ' . date('Y') . ' Powered by <a href="http://www.zen-cart.com" target="_blank">Zen Cart</a> <br />Översättning <a href="http://www.frilansreklam.se" target="_blank">Signs FrilansReklam</a> Support <a href="http://www.zencart.nu" target="_blank">www.zencart.nu</a>');


    define('SEND_EXTRA_GV_ADMIN_EMAILS_TO_SUBJECT','[GV ADMIN SENT]');
    define('SEND_EXTRA_DISCOUNT_COUPON_ADMIN_EMAILS_TO_SUBJECT','[DISCOUNT COUPONS]');
    define('SEND_EXTRA_ORDERS_STATUS_ADMIN_EMAILS_TO_SUBJECT','[ORDERS STATUS]');
    define('TEXT_UNSUBSCRIBE', "\n\nFör att avanmäla er för vårt nyhetsbrev och alla mail fr&ån oss, klicka på följande länk: \n");

    // for whos_online when gethost is off
    define('OFFICE_IP_TO_HOST_ADDRESS', 'Avstängd');


    define('TEXT_EMAIL_SUBJECT_ADMIN_USER_ADDED', 'Admin varning: Ny administratör skapad.');
    define('TEXT_EMAIL_MESSAGE_ADMIN_USER_ADDED', 'Administrativ varning: En ny administratör (%s) har skapats till din butik av %s.' . "\n\n" . 'Om du eller någon annan godkänd administratör inte skapat denna, är det viktigt att du kontrollerar din säkerhet.');
    define('TEXT_EMAIL_SUBJECT_ADMIN_USER_DELETED', 'Admin varning: en administratör har raderats .');
    define('TEXT_EMAIL_MESSAGE_ADMIN_USER_DELETED', 'Administrativ varning: en administratör (%s) har raderats från butiken av %s.' . "\n\n" . 'Om du eller någon annan godkänd administratör inte skapat denna, är det viktigt att du kontrollerar din säkerhet.');
    define('TEXT_EMAIL_SUBJECT_ADMIN_USER_CHANGED', 'Admin varning: Administratörens information har ändrats.');
    define('TEXT_EMAIL_ALERT_ADM_EMAIL_CHANGED', 'Admin varning: Administratören (%s) e-post adress har ändrats från (%s) till (%s) av (%s)');
    define('TEXT_EMAIL_ALERT_ADM_NAME_CHANGED', 'Admin varning: Administratören (%s) användarnamn har ändrats från (%s) till (%s) av (%s)');
    define('TEXT_EMAIL_ALERT_ADM_PROFILE_CHANGED', 'Admin varning: Administratören (%s) säkerhetsprofil har ändrats från (%s) till (%s) av (%s)');



    This is swedish.php

    <?php
    /**
    * @package admin
    * @copyright Copyright 2003-2010 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: swedish.php 15621 2010-03-06 10:01:29Z drbyte $
    */
    /*
    * Zen Cart version 1.5.0 -
    * @Swedish Translation 2011 - Signs FrilansReklam, www.frilansreklam.se
    * @Swedish support - www.zencart.nu - Svenska Zen Cart
    */
    if (!defined('IS_ADMIN_FLAG'))
    {
    die('Illegal Access');
    }

    // added defines for header alt and text
    define('HEADER_ALT_TEXT', 'Administration e-handel');
    define('HEADER_LOGO_WIDTH', '200px');
    define('HEADER_LOGO_HEIGHT', '70px');
    define('HEADER_LOGO_IMAGE', 'logo.gif');

    // look in your $PATH_LOCALE/locale directory for available locales..
    setlocale(LC_TIME, 'sv_SE.utf-8');
    define('DATE_FORMAT_SHORT', '%Y-%m-%d'); // this is used for strftime()
    define('DATE_FORMAT_LONG', '%A %e %B, %Y'); // this is used for strftime()
    define('DATE_FORMAT', 'Y-m-d'); // this is used for date()
    define('PHP_DATE_TIME_FORMAT', 'Y-m-d H:i:s'); // this is used for date()
    define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');
    define('DATE_FORMAT_SPIFFYCAL', 'yyyy-MM-dd'); //Use only 'dd', 'MM' and 'yyyy' here in any order

    ////
    // Return date in raw format
    // $date should be in format mm/dd/yyyy
    // raw date is in format YYYYMMDD, or DDMMYYYY
    function zen_date_raw($date, $reverse = false) {
    if ($reverse) {
    return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);
    } else {
    return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2);
    }
    }

    // removed for meta tags
    // page title
    //define('TITLE', 'Zen Cart');

  7. #7
    Join Date
    Jun 2018
    Location
    Sweden
    Posts
    4
    Plugin Contributions
    0

    Default Re: About faulty characters in email template (swedish åäö)

    This is a order mail its mixed working and not working? But here is the last text working that's working in another mail?




    "Leveransadress
    ------------------------------------------------------
    test test
    testfd dfg sdfg
    test
    4414 test
    Sweden

    Faktureringsadress
    ------------------------------------------------------
    test test
    testfd dfg sdfg
    test
    4414 test
    Sweden

    Betalningsmetod
    ------------------------------------------------------
    F&ouml;rskottsbetalning

    G�r ditt check eller postanvisning betalning till:

    Swish

    Posta din betalning till:
    Carscan™
    Noltorpsvägen

    din order hanteras inte innan vi f�tt betalning.


    -----
    Denna e-postadress har vi fått från er eller någon av våra kunder. Om du anser att du kan fått detta meddelande av misstag, vänligen kontakta oss per e-post info@carscan.se


    -----
    Copyright (c) 2018 Carscan™. Powered by Zen Cart n Utveckling: Signs FrilansReklam



    Detta e-postmeddelande skickas i enlighet hos den amerikanska CAN-SPAM lagen som trädde i kraft 2004-01-01. Förfrågningar om borttagning kan skickas till denna adress och kommer att uppfyllas och respekteras.

 

 

Similar Threads

  1. v155 Products per page & sorting system faulty after installing megashop template
    By Psychophrenic in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 7 Aug 2016, 02:15 AM
  2. v153 Confused about foreign characters
    By jeking in forum Addon Language Packs
    Replies: 6
    Last Post: 21 Jul 2014, 07:22 PM
  3. v151 About Swedish packet installation
    By fanisme in forum General Questions
    Replies: 3
    Last Post: 5 May 2013, 03:03 AM
  4. Error when searching for swedish characters (å, ä, ö)
    By ErikAllan in forum General Questions
    Replies: 4
    Last Post: 15 Feb 2009, 06:03 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR