Hi Mariano, Instantiations Smalltalk Support <[hidden email]> hat am 19. November 2018 um 14:55 geschrieben: I keep enjoying them and like to share the goodness ;-)
You are definitely on track. We've moved to our new server and most of our special character issues are now a thing of the past... Actually this one is the last I currently know of and I am glad about it. I am also glad I know of at least two ways to solve this, even if the fixes don't end up in any shipped product.
Please keep this sentence for later use. I like it ;-)
I was guessing that this is not an issue for Pharo-Seasiders. Good for them ;-)
Yes, this was my feeling as well. Not so much the place (write:toFile:inFolder: is in Grease anyways), but because it misses a parameter, namely the charset to convert to. I think we both agree that converting EVERY file to UTF-8 is not a good idea, and there are many imaginable reasons for even not every non-binary file. So my suggestion is only covering my case, not a general case. I wouldn't even dare to call my case an 80% case.
Sounds much better, and still misses a way to give control over the conversion up to #deployFiles:
man, the mimetypeOf: was what I was actually looking for. It still wildly guesses on the mimetype and all it has available for it is the filename extension, but that's much better than isString. Absolutely agreed.
My gut feeling says we're at the end of the road, because nobody else will care. I would love to see your suggested implementation incorporated in VAST, but don't think it will be accepted by the Seaside devs. OTOH, maybe my assumptioons about this are wrong. Do you have a channel for pushing changes back? I haven't heard anything about this from anybody on my blog or the mailing list... Joachim
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Hi Mariano,
this looks really good - and works
like a charm! It's already in my req maps structure. And
it's much better than my half-baked approach.
If this is accepted to go upstream into
Seaside, I suggest that deployFiles delegates to this new method,
in order to avoid typical DRY problems.
deployFiles self deployFilesUsing: ("and here comes the trouble: GRCodec has no code to determine the current codepage/encoding in the image... so maybe utf-8 can be defined as a standard parameter here?") One little comment about method naming:
deployFilesEncodingWhen:with:
deployFilesUsing:
I think the names should be somewhat closer to each other. Some suggestions for change:
I think these are better and make clear
that the 2-parameter one is just a variant of the other one.
Re: test files. The ones in our code
are tons of javascript code with maybe 2 or three Umlauts in them.
But they will be added to the DOM and thus are ugly. But for
testing you'd have to search a lot of text to spot the
umlaut(s)...
I guess a good start for testing would
be to implement something like this:
MyFileLibrary>>umlautTest1Js
^'console.log("ÄÖÜäöüß")';
Once again: thanks a lot for your help
and support! It is great having you as a "cleaner" (remember
Jacques the cleaner from Nikita?) in the background ;-)
Joachim
Am 19.11.18 um 17:54 schrieb
Instantiations Smalltalk Support:
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by jtuchel
Hi Mariano,
I also tested it with our production code and it works very well. So I think it can go on its journey to 9.2. Let it loose and continue your joruney to new frontiers ;-) Joachim _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |