emcee icon indicating copy to clipboard operation
emcee copied to clipboard

Getting not valid UTF-8 when using google-map web component

Open kretz opened this issue 11 years ago • 5 comments

Hi,

I just got polymer working with emcee without problems. I then wanted to try and add som Web Components, in this case google-map (https://github.com/GoogleWebComponents/google-map).

I installed google-map using Bower and then I added this to app/assets/components/application.html:

*= require google-map/google-map

But on when running rails I get an error: app/assets/components/application.html is not valid UTF-8.

Is this a n00b mistake or did I stumble on a bug somewhere? Anything I can try out?

Thanks, Martin

kretz avatar Aug 19 '14 21:08 kretz

Probably a bug, @kretz. Do you have an example repo that has this problem? That way I can look at it using the same setup you're using. Thanks.

ahuth avatar Aug 19 '14 23:08 ahuth

I created one from scratch with only the relevant parts; https://github.com/kretz/polymer-demo

Thanks, Martin

kretz avatar Aug 20 '14 08:08 kretz

Thanks. I looked at this earlier today, and it seems like the problem is with the google-apis library, which google-maps imports.

I don't think the problem is actually with that library, because its pretty simple, but I have no idea what's causing the issue.

I've got another idea to try tomorrow, and I'll let you know.

ahuth avatar Aug 21 '14 01:08 ahuth

Hey, @kretz, I have no idea how to fix this. Sorry.

The problem is definitely with the google-apis library, though. If I go to the 'google-apis.html' file and comment out the 5 html imports in there, then the error no longer occurs (but obviously the <google-map> doesn't work).

I've tried repeatedly to convert the files in that library to UTF-8, but that hasn't worked. I've also been trying to force the encoding or remove invalid characters in Emcee itself, but that hasn't worked either.

Right now, I'm out of ideas. If I think of something else, I'll try it, though.

ahuth avatar Aug 22 '14 12:08 ahuth

Hi, just wanted to give you an update. This issue definitely should be fixed, but I don't have the need nor motivation to work on this gem anymore. Sorry!

Will still accept PRs, though.

ahuth avatar Dec 28 '14 17:12 ahuth