Page 1 of 2 12 LastLast
Results 1 to 15 of 23
  1. #1
    kdporter is offline Novice
    Windows 10 Office 365
    Join Date
    Aug 2025
    Posts
    2

    Question Export Query to HTML Now Encoding Characters

    I am using Office 365 (now Microsoft 365) on Windows 10.




    Sometime between 21-APR-2025 and today, the export to HTML function in Access began encoding all of the actual data being exported.


    What previously looked like this:


    <TABLE BORDER=1 BGCOLOR=#ffffff CELLSPACING=0><FONT FACE="Calibri" COLOR=#000000><CAPTION><B>qs locomotives</B></CAPTION></FONT>


    Now looks like this:


    <TABLE BORDER=1 BGCOLOR=#ffffff CELLSPACING=0><FONT FACE="Calibri" COLOR=#000000><CAPTION><B>%#113;%#115;%#32;%#108;%#111;%#99;%#111;%#109;%#11 1;%#116;%#105;%#118;%#101;%#115;</B></CAPTION></FONT> Except that the percent symbols (%) are ampersands (&).

    This makes editing the resulting HTML file with a text editor very difficult. It also significantly increases the file size.


    This is from a saved export, so I'm not doing anything different on my end. I am exporting data with formatting and layout. I have tried all three HTML output options (i.e., default encoding, unicode, and unicode UTF-8) and the results are the same.


    Is there is a switch somewhere that will force Access to export HTML without encoding characters?

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,549
    Look for recent Office updates. Rollback if possible.

    FWIW, I have just tried on 2019 and get the same, regardless of the encoding method. I am also on Win11 24H2.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  3. #3
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,203
    What is your 365 update channel, version number, build & bitness?

    I've tested in both 32-bit & 64-bit 365 Beta Channel version 2509 build 19212.20000 and cannot replicate the issue. Maybe already fixed in beta

    If you have 32-bit Access, it may be another example of the 32-bit wizard bug discussed in Wizard ActiveXs are Broken in 32 Bit for which a fix is due to be released to current channel probably today

    .
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  4. #4
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,549
    This is mine Microsoft® Access® 2019 MSO (Version 2507 Build 16.0.19029.20136) 32-bit

    That link has that version exactly.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  5. #5
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,203
    There is now an update available to version 2507 build 19029.20208 that fixes all the other 32-bit Access wizard issues mentioned in the Access Forever article (see post #3)
    If possible, please update to the latest build and see if that fixes this issue as well.

    BTW: You should report the version and build number to the right of the About Access button NOT that shown on the top of the next screen when you click the button (which refers to the mso.dll library file)
    The two builds are often (though not always) different.
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  6. #6
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,549
    Ah, OK, that is different.
    Attached Thumbnails Attached Thumbnails Screenshot 2025-08-19 204023.png  
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  7. #7
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,203
    Thanks. That confirms my point!
    Anyway I’d be grateful if you could update to the latest CC build and let me know if it’s now fixed.
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  8. #8
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,549
    I have updated to 20208 and the output is still encoded?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  9. #9
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,203
    Thanks. Then it appears to be a different issue than those fixed today
    Hopefully the OP will also update to the latest build and report back.
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  10. #10
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,549
    Quote Originally Posted by isladogs View Post
    Thanks. Then it appears to be a different issue than those fixed today
    Hopefully the OP will also update to the latest build and report back.
    I even switched the computer off last night and back on again this morning, and it still happens.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  11. #11
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,203
    Waiting for the OP to report back.
    As already stated I can't replicate this with my various setups but I don't have 32-bit Current Channel

    In the meantime, can you provide a screenshot of the encoded output you see

    Also does the problem still occur if you use DoCmd.TransferText code to export to HTML instead of using the wizard?
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  12. #12
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,549
    Colin,
    Works fine using TransferText, so only when using the wizard manually?
    Attached Thumbnails Attached Thumbnails htmlBad.png   htmlGood.png  
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  13. #13
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,203
    Ah now I see what you mean.
    I was just looking at the HTML output in a browser - not opening the HTML file in a test editor! Doh!

    Yes I can also see the difference between the 2 methods in 64-bit Access 365 version 2509 build 19214.20000

    The output using the wizard encodes the data if the 'Export data with formatting and layout' option is checked.
    If that checkbox isn't ticked, the wizard output closely resembles that obtained using DoCmd.TransferText

    Attached is a zip file containing 5 HTML outputs:
    • 365TransferText
    • 365NotFormatted
    • 365Formatted
    • 2010Formatted
    • 2010NotFormatted


    The only one where the data is encoded is the 365Formatted output

    Not sure whether this is a bug or more likely a change in the way that the wizard structures the formatted HTML output
    Possibly related to changes announced in this blog article? Access releases bug fixes in version 2506 | Microsoft Community Hub

    The OP now has two ways of ensuring that the data isn't encoded in his HTML output files: disable formatting or use TransferText
    Attached Files Attached Files
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  14. #14
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,549
    Good spot on the Preserve formatting. I would always select that.

    Not doing so, gets me the correct values in the source, just like TransferText.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  15. #15
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,203
    Note that text data is still encoded (apart from the headers). Your example only has numbers including currency & dates
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Display HTML or webpage in HTML report
    By journeyman in forum Reports
    Replies: 5
    Last Post: 02-22-2024, 06:03 PM
  2. Replies: 13
    Last Post: 05-22-2021, 12:11 AM
  3. HTML characters in plain text field
    By etorasso in forum Access
    Replies: 3
    Last Post: 09-25-2014, 11:47 AM
  4. algorithm for encoding password string
    By princess-1 in forum Security
    Replies: 2
    Last Post: 10-30-2010, 05:48 PM
  5. SSN Encoding
    By Lunch in forum Programming
    Replies: 13
    Last Post: 02-01-2010, 03:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums