Results 1 to 3 of 3

Thread: Encoding issue when viewing Microsoft Office documents

  1. #1
    vogelizer is offline Member
    Join Date
    Dec 2006
    Posts
    8

    Default Encoding issue when viewing Microsoft Office documents

    Spent days trying to fix this--I'd really appreciate any suggestions...

    Here's what I'm encountering in the documents section:

    After clicking "view" icon and downloading a Microsoft Office document,
    the downloaded file shows extra ASCII characters (looks like formatting chars are being displayed).

    Here's an example of the formatting characters (I'm not sure what encoding it is):
    ÐÏࡱá>þÿ ƒþÿÿÿcÿÿÿÿÿÿÿÿÿÿÿÿÿÿ

    txt and pdf files display correctly.

    I've tried matching related variables in config.php and php.ini with an instance of SugarCRM that encodes Microsoft documents correctly. For example:

    config.php
    'default_export_charset' => 'ISO-8859-1' | 'UTF-8'
    'default_charset' => 'ISO-8859-1' | 'UTF-8'

    php.ini:
    mbstring.internal_encoding = UTF-8
    mbstring.encoding_translation = On | Off


    My search on this hasn't turned up any results to SugarCRM issues with MS documents. I'm sure there's something really simple I'm missing.

    Thanks.
    Pat
    version 4.5.0f
    Bitrock WAMP installer
    Windows Server 2003
    IIS 6.0

  2. #2
    andydreisch's Avatar
    andydreisch is offline Sugar Team Member
    Join Date
    Apr 2005
    Location
    San Jose
    Posts
    2,080

    Default Re: Encoding issue when viewing Microsoft Office documents

    Hi vogelizer, are you using Firefox? My guess is that FF has no idea how to display the content because it is missing a file association.

    I'm no expert in this but in FF you can associate a file type with a viewer/program using Tools -> Options, click the Downloads button and then "View and Edit Actions...".

    Check this out and let us know.

    Andy
    Andy Dreisch
    Vice President, Online Team


    Check out our Podcasts!
    Sugar University for training
    Sugar Wiki for developer and user help
    SugarForge for modules, themes, lang packs
    SugarExchange for production-ready extensions
    Enter/view bugs via the Sugar bug tracker

  3. #3
    vogelizer is offline Member
    Join Date
    Dec 2006
    Posts
    8

    Default Re: Encoding issue when viewing Microsoft Office documents

    Hi Andy,

    Thanks for your fast response!

    I was using IE7, but FireFox 1.5.0.9 does exhibit the same behavior with MS documents. For FireFox, although MS Office documents are not listed in the Download Action list, I do have a Mozilla plug-in installed for handling these (NPOFFICE.DLL).

    I can download and open MS documents successfully using another installation of SugarCRM hosted by an external host company. So, I assumed there must be a config issue with our local Sugar installation. I've matched the config.php variables for both setups to no avail.

    Do you have any idea what could be wrong with the Sugar config to cause this encoding issue?

    Thanks again. I really appreciate your advice.

    Pat

    Version 4.5.0f
    Bitrock WAMP installer
    Windows Server 2003
    IIS 6.0

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 2008-10-15, 05:56 PM
  2. Replies: 4
    Last Post: 2005-09-06, 02:10 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
  •