Python Forum
Super/subscript copied to word
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Super/subscript copied to word
#4
(Oct-13-2016, 03:36 PM)sparkz_alot Wrote: you may have to ensure Python and Word are using the same font.
Or more correct this is about encoding ;)

There some difference if you Python 2 or 3.
Eg with Python 3 that have encoding build into open().
with open('test.txt', 'w', encoding='utf-8') as f:
   f.write('10' + u'\u00b3')
 
If you open this txt in word it should show up a box(File conversion) and it should have mark UTF-8.
Choose that and it look the same in word.

It's about choosing same encoding out and in,
and UTF-8 is an obvious first choice to try.
Reply


Messages In This Thread
Super/subscript copied to word - by lk89 - Oct-13-2016, 02:32 PM
RE: Super/subscript copied to word - by sparkz_alot - Oct-13-2016, 03:36 PM
RE: Super/subscript copied to word - by lk89 - Oct-13-2016, 03:48 PM
RE: Super/subscript copied to word - by snippsat - Oct-13-2016, 04:10 PM
RE: Super/subscript copied to word - by sparkz_alot - Oct-13-2016, 04:13 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Problems with super() Hoespilaar 2 373 Apr-10-2024, 10:10 AM
Last Post: Hoespilaar
  super() in class akbarza 1 560 Dec-19-2023, 12:55 PM
Last Post: menator01
  Error in Int object is not subscript-able. kakut 2 1,246 Jul-06-2022, 08:31 AM
Last Post: ibreeden
  How can I find the value of k(subscript t+1) for periods t=1...50? maeva 2 1,622 Nov-07-2021, 07:59 AM
Last Post: maeva
  Why changing data in a copied list changes the original list? plumberpy 3 2,320 Aug-14-2021, 02:26 AM
Last Post: plumberpy
Question Problem: Check if a list contains a word and then continue with the next word Mangono 2 2,602 Aug-12-2021, 04:25 PM
Last Post: palladium
  Error in Int object is not subscript-able. How to debug this ? yanDvator 1 2,279 Aug-03-2020, 02:28 PM
Last Post: Larz60+
  superclass and super() grkiran2011 1 1,808 Jun-20-2020, 04:37 AM
Last Post: deanhystad
  Python Speech recognition, word by word AceScottie 6 16,189 Apr-12-2020, 09:50 AM
Last Post: vinayakdhage
  word subscript Staph 1 1,845 Mar-31-2020, 10:21 AM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020