title: assetic and filters
body: <p>I try to use the cssembed filter loading my stylesheets (because of the images referenced in the css)</p>
  
  <p>In config.yml</p>
  
  <pre><code>assetic:
  debug:          %kernel.debug%
  use_controller: false
  bundles:        [ cramifviewkitBundle ]
  #java: /usr/bin/java
  filters:
      cssrewrite: ~
      cssembed:
          jar: %kernel.root_dir%/Resources/java/cssembed-0.4.5.jar
      yui_css:
          jar: %kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar
      yui_js:
          jar: %kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar
  </code></pre>
  
  <p>I download cssembed-0.4.5.jar and located it in <strong>src/my_bundle/Resources/java</strong></p>
  
  <p>in the template I wrote : </p>
  
  <pre><code>{% stylesheets 
      '@myBundle/Resources/public/css/*'
      '@myBundle/Resources/public/JQMenu/css/*'
      filter='cssembed'
  %}
  </code></pre>
  
  <p>Everything is fine for the first import, but for the second one, when I look with firebug, I have this :</p>
  
  <pre><code>&lt;link type="text/css" href="/viewkit/web/app_dev.php/css/eb2d30c_part_1_jqueryMenus_1.css" rel="stylesheet"&gt;
  </code></pre>
  
  <p>and when I open it, it is not css but html because there is an error :</p>
  
  <pre><code>&lt;h1&gt;Exception thrown when handling an exception    (Symfony\Component\HttpKernel\Exception\FlattenException: Warning: json_encode() [&lt;a   href='function.json-encode'&gt;function.json-encode&lt;/a&gt;]: Invalid UTF-8 sequence in argument in C:\wamp\www\viewkit\vendor\monolog\monolog\src\Monolog\Formatter\NormalizerFormatter.php line 99)&lt;/h1&gt;
  &lt;div class="block_exception clear_fix"&gt;
  &lt;h2&gt;&lt;span&gt;1/1&lt;/span&gt; &lt;abbr title="ErrorException"&gt;ErrorException&lt;/abbr&gt;: Warning: json_encode() [&lt;a href='function.json-encode'&gt;function.json-encode&lt;/a&gt;]: Invalid UTF-8 sequence in argument in  C:\wamp\www\viewkit\vendor\monolog\monolog\src\Monolog\Formatter\NormalizerFormatter.php line 99&lt;/h2&gt;
  &lt;/div&gt;
  &lt;div class="block"&gt;
   &lt;ol class="traces list_exception"&gt;
   &lt;li&gt; in  C:\wamp\www\viewkit\vendor\monolog\monolog\src\Monolog\Formatter\NormalizerFormatter.php line 99&lt;/li&gt; 
  </code></pre>
  
  <p>any idea where it could come from ?</p>