GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — csv2rec encoding support · Issue #169 · matplotlib/matplotlib

csv2rec encoding support #169

New issue
Copy link
New issue
Copy link
Closed
Closed
csv2rec encoding support#169
Copy link

Description

@ddale
ddale
opened on Jun 20, 2011
Issue body actions

Original report at SourceForge, opened Fri Oct 22 11:00:07 2010

In matplotlib-1.0.0: when trying to import utf-8 csv files, csv2rec messes up some characters like german umlauts.

My (probably stupid) fix does this:

--- /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/mlab.py~ 2010-07-06 16:43:35.000000000 +0200
+++ /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/mlab.py 2010-10-21 11:33:19.000000000 +0200
@@ -2207,7 +2207,7 @@
mydateparser = with_default_value(dateparser, datetime.date(1,1,1))
myfloat = with_default_value(float, np.nan)
myint = with_default_value(int, -1)

  • mystr = with_default_value(str, '')
  • mystr = with_default_value(unicode, u'')
    mybool = with_default_value(mybool, None)

def mydate(x):

SourceForge Comments

On Fri Oct 29 14:22:06 2010, mdboom wrote:

Maybe I'm missing something... Does the CSV format have a standard way to specify an encoding? In absence of that, I'm not sure how we could safely do the right thing here -- we can only make a guess as to the encoding of the file. I'd prefer it if there were a way to specify one in the file itself, but in the absense of that, I think csv2rec should grow a kwarg to choose one.

Activity

  1. dmcdougall commented on Aug 24, 2012

    @dmcdougall
    dmcdougall
    on Aug 24, 2012
    Member
    More actions

    Could this help?

  2. tacaswell commented on Aug 18, 2014

    @tacaswell
    tacaswell
    on Aug 18, 2014
    Member
    More actions

    Closing due to inactivity and because we shouldn't be in data munging business.

  3. tacaswell
    closed this as completedon Aug 18, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.