Note that there are some explanatory texts on larger screens.

plurals
  1. POperl Meteor server unicode problem
    text
    copied!<p>When trying to subscribe to a channel named "public" with Meteor i get the desired response: </p> <pre><code>&lt;script&gt;ch("public",0)&lt;/script&gt; </code></pre> <p>When the http request is:</p> <pre><code>GET /push/131530959548387383/xhrinteractive/public?nc=1315309595740 HTTP/1.1 </code></pre> <p>But when i try to subscribe to a channel named in english and hebrew such as: "tag-קוקאין" and the http request is:</p> <pre><code>GET /push/1315309516300999786/xhrinteractive/tag-%D7%A7%D7%95%D7%A7%D7%90%D7%99%D7%9F?nc=1315309516590 HTTP/1.1 </code></pre> <p>I get an akward response - the name of the channel becomes dots:</p> <pre><code>&lt;script&gt;ch("tag-............", 0);&lt;/script&gt; </code></pre> <p>So i was digging in Meteor files and came across Subscriber.pm file which is responsible for figuring the header and connect the end user to the right channel.</p> <p>The part that checks the header using regex is:</p> <pre><code> if($self-&gt;{'headerBuffer'}=~/GET\s+$::CONF{'SubscriberDynamicPageAddress'}\/([0-9a-z]+)\/([0-9a-z]+)\/([a-z0-9_\-\%\.\/]+).*?/i) { $self-&gt;{'subscriberID'}=$1; $self-&gt;{'mode'}=$2; my $persist=$self-&gt;getConf('Persist'); my $maxTime=$self-&gt;getConf('MaxTime'); $self-&gt;{'ConnectionTimeLimit'} = ($self-&gt;{'ConnectionStart'}+$maxTime) if ($maxTime&gt;0); my @channelData=split('/',$3); my $channels={}; my $channelName; my $offset; foreach my $chandef (@channelData) { if($chandef=~/^([a-z0-9_\-\%]+)(.(r|b|h)([0-9]*))?$/i) { $channelName = $1; $channels-&gt;{$channelName}-&gt;{'startIndex'} = undef; if ($3) { $offset = $4; if ($3 eq 'r') { $channels-&gt;{$channelName}-&gt;{'startIndex'} = $offset; } if ($3 eq 'b') { $channels-&gt;{$channelName}-&gt;{'startIndex'} = -$offset; } if ($3 eq 'h') { $channels-&gt;{$channelName}-&gt;{'startIndex'} = 0; } } } } </code></pre> <p>when "CONF{'SubscriberDynamicPageAddress'}" is "push";</p> <p>There has to be a fix for this somewhere.. i tried searching everywhere with no avail. I will be grateful if someone will point me to some direction.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload